I have 40 structures in my Workspace which are divided into three different categories i.e. a map, a table and a constant. How can i Loop through all the structures at once and then differentiate it on their types and perform certain operations on them?
Asked
Active
Viewed 23 times
0
-
In a first step you can use `who` and `whose` to get an overview over your workspace variables. What do you mean by "structure"? Variables of a certain type? Or `struct` variables only? – Matthias W. Feb 12 '16 at 13:29
-
In a second step you can use the `class` returned by `whos` (`whose` above was a typo) to determine the data type or to sort this list. And in another step you could use `eval` (see also http://stackoverflow.com/a/4613158/1627585). – Matthias W. Feb 12 '16 at 13:36
-
1How does this differ from [your question yesterday](http://stackoverflow.com/questions/35342983/directional-derivatives-of-a-matrix)? – sco1 Feb 12 '16 at 13:37