Processing Multiple EMG files
Mostrar comentarios más antiguos
I have multiple files of raw EMG data of different muscles that needs to be linear enveopled. I know how to do that and have made code for it but I was wonderig if there would be a way to run the code on multiple files to save some time. I know that a for loop of some sorts could be used but I do not understand how to create one for files instead of vectors. Is there any way to do this?
ex. the files can be found in 'C:, User, User1, Downloads, S02, S2_T3data, Proceessed_EMG, Cond_EMG "
the files are named : SCM_L, SCM_R, UTR_L, UTR_R
Thanks in advance
5 comentarios
"Is there any way to do this?"
Of course:
You will probably need this too:
Ryan Chhiba
el 2 de Mzo. de 2021
"So for this method, I would have to rename all the files to have numbers"
No. That page illustrates two basic approaches, neither of which require you to rename any files:
- use dir to get a list of the files and iterate over that.
- generate the names (which could be via indexing from an array or some other algorithm to create the names). This approach might suit your filenames, which seem to be combinations of two sets of strings.
You certainly do not have to number the filenames.
Ryan Chhiba
el 2 de Mzo. de 2021
Stephen23
el 3 de Mzo. de 2021
Do not use command syntax, use function syntax exactly as the example in the documentation shows.
Respuestas (0)
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!