MATLAB: How to uncombine variables from one variable

variables

Hi again i have one variable which contains 181 variables. do you know how to uncombine these variables from one variable?

Best Answer

I have no idea why you want to do this - it seems like it would make the program less convenient after this. Of course you could always use the brute force way:
U_in_1 = s.U_in_1;
dp_SL_amp = s.dp_SL_am;
% and so on for the remaining 179 items...
You could tuck all that inside a function rather than clutter up your main program.
You could also use a loop if you call fieldnames() and eval().