You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matlab recommends not to use textread anymore (see snippet from create_sots below). Textscan would be an alternative. Another option would be to use readcell() to separately extract the variable names for the logfiles and the data extract the data. This way, it might be possible to subset the important variables by their names and not with complex formatting, which might go wrong if stimulus onset files are not identical (e.g., when they have a column for participant IDs at the beginning or not).
Matlab recommends not to use textread anymore (see snippet from create_sots below). Textscan would be an alternative. Another option would be to use readcell() to separately extract the variable names for the logfiles and the data extract the data. This way, it might be possible to subset the important variables by their names and not with complex formatting, which might go wrong if stimulus onset files are not identical (e.g., when they have a column for participant IDs at the beginning or not).
[event_type,event_code,event_time] = textread([logfile.folder,filesep,logfile.name],'%*d %s %s %d %*s%*s%*s%*s%*s%*s%*s%*s%*s','headerlines',IgnoreHeaderLines)
The text was updated successfully, but these errors were encountered: