For loop in Matlab that takes data from workspace
Afficher commentaires plus anciens
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 commentaire
Stephen23
le 28 Nov 2018
You should read this:
and then import your tables into one array (e.g. a cell array).
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!