Let's say I have structural data in the workspace as follows
data.a={'1','2'};
data.b=[1,2,3];
data.c='hello';
I need to have the following variables in the workspace:
a={'1','2'};
b=[1,2,3];
c='hello';
Please tell me how to move forward with this?
Why do I need this (in the case of a better alternative to achieve my requirement):
I have about 140 .mat files. Now I need to replace the line in all these .mat files. This row can be part of an array of strings, an array of cells, or a single variable. I run a loop for all these mat files and load them like this:
tempLoad=load('filename.mat');
tempLoad, 'filename.mat'. . 'filename.mat' .
save('filename.mat','tempLoad') save('filename.mat'), .
tempLoad , tempLoad save .