For loop in Matlab that takes data from workspace
Ältere Kommentare anzeigen
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 Kommentar
Stephen23
am 28 Nov. 2018
You should read this:
and then import your tables into one array (e.g. a cell array).
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!