|
|
[[_TOC_]]
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
# Advanced String Swapping
|
|
|
This section elaborates on the many things one can do with the sting swapping methods used in this plug in.
|
... | ... | @@ -44,10 +43,11 @@ Using this schema you can make any number of alterations to the strings you are |
|
|
* Script Name is , ```s01_scalpart.m```
|
|
|
|
|
|
* Config needs , ```job_name, [batch_hfn,.,1]_[batch_dfn,_,-3]_[_,4,batch_dfn]```
|
|
|
* Processes [s01_scalpart ~~.m~~] _ [Subject_1 ~~_John_Doe_GoNoGoTask.set~~] _ [~~Subject_1_John_Doe_~~ GoNoGoTask.set]
|
|
|
* Behind the Scenes, [s01_scalpart ~~.m~~] _ [Subject_1 ~~_John_Doe_GoNoGoTask.set~~] _ [~~Subject_1_John_Doe_~~ GoNoGoTask.set]
|
|
|
|
|
|
* Jobname/Script name generated to run is, ```s01_scalpart_Subject_1_GoNoGoTask.set```
|
|
|
|
|
|
This is expecially helpful running batches on files with long names, matlab will only run scripts with names less then 64 characters. For file names such as *eeg_RSVP_Study_session_1_task_main_subjectLabId_10__1_KMM_recording_1.bdf* running a script named after the subject would not be possible without cutting out parts first. As the important information is the session/subject number you could use the same technique as above to cut out everything else after that using a **...,_,-9]**.
|
|
|
|
|
|
# Help
|
|
|
key_strswap() - Replace any instance of a key string surrounded by brackets
|
... | ... | |