Matlab trial list behavioral experiment

1 view (last 30 days)
STEFANA
STEFANA on 4 May 2023
Answered: Steven Lord on 4 May 2023
Hi, I'm running a behavioral experiment on Matlab. I'm working on the trial list on a txt file. This file would contain my stimuli. I would ask whether it is possible to make matlab execute the stimuli in exactly the order in which they are placed and eventually which is the command.
Thank you!

Answers (1)

Steven Lord
Steven Lord on 4 May 2023
What's the format of the entries in your trial list, and what does "execute the stimuli" mean in this context? Does it mean to pass the entries of that list into some other function, does it mean to run the functions with the names stored in the entries in the list, or does it mean something else?
If the entries in the trial list are script or function names and executing them means to call the scripts or functions, the easiest approach probably would be to change your .txt file into a .m file (just change the extension, assuming there's no extra text in the file) and run it.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!