For loop in Matlab that takes data from workspace
Mostrar comentarios más antiguos
I have raw data from a series of tensile tests. The data from the various samples were imported from excel and are in table format. They are named C100_1, C200_1, etc. I have written a script that will extract data from one table and plot a stress-strain curve as well as calculate mechanical properties.
My question is as follows: Is it possible to have a for loop that will go through all the table variables in my workspace in one go. Currently my solution is just to change the code each time and input the name of the variable and run manually.
Thanks in advance.
1 comentario
Stephen23
el 28 de Nov. de 2018
You should read this:
and then import your tables into one array (e.g. a cell array).
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements 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!