MATLAB: How to make loop

stateflow

I have the script below:
wc = W(1).cells; % connection grid cells
WI = W(1).WI;
dz = W(1).dZ;
I want to calculate that 2 equations become one struct or array.
wc = W(1).cells;
and
wc = W(2).cells

Best Answer

wc(1).W1 = W(1).cells ;
wc(1).W2 = W(2).cells ;
Related Question