Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_sots: textread deprecated #15

Open
MaurizioSicorello opened this issue Jul 29, 2024 · 0 comments
Open

create_sots: textread deprecated #15

MaurizioSicorello opened this issue Jul 29, 2024 · 0 comments

Comments

@MaurizioSicorello
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant