I have an array and I wish to distribute it across a strucuture in one line as below;
x=[1,2,3];
I wish to distribute this to structure S as such in one line, such that;
S(1).field = 1;S(2).field = 2;S(3).field = 3;
MATLAB
x=[1,2,3];
S(1).field = 1;S(2).field = 2;S(3).field = 3;
Best Answer