I have a .mat file that contains multiple 1*1 Structures with various names. I want to extract values of signals and assign it to a variable with same name as that Structure. And I want to repeat this process for all Structures present in my .mat file. How do I write a script to automate this process?
Below is an example of this process I would like to automate.
- My .mat file contains structure with signal name X (1*1 struct) that contains various fields under it
- I would like to extract values located at field - X.signals.values where values is 1792*1 double column with actual data values recorded for signal X
- I would like to assign signal name X to extracted values and save it to workspace with same signal name X
- I would like to repeat steps 1-3 for all structure signals in my .mat file
Please help me understand how to automate above process with MATLAB script. Please let me know if you need more explanation of above process.