store workspace file in variables using a for loop
Mostrar comentarios más antiguos
Hi,
I´ve got lots of .txt files in my folder and loaded them into the workspace. All of them contain a 1001x7 matrix, e.g.
9.7 9.7 9.7 144.5 79.1 142.6 84
9.7 9.7 9.7 123.6 88.1 156.7 80.3
9.7 9.7 9.7 125.3 90.7 149.1 78.1
9.7 9.7 9.7 133.6 82.6 105.6 76.8
9.7 9.7 9.7 115 85.1 90.1 81.5
...
As they are named as aaa_bbb_ccc I would like to filter them and store them into a variable.
For example I want to search my workspace for ending "_ccc" and store all of them into their own variable.
By using the who-function I was able to output the names of the matrix into the command window, but not save them as a variable.
I would be very happy to get some help as I couldn´t find any corresponding question here.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Whos 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!