MATLAB: Array of structures in matlab

array of structuresarray of structures in matlab

how to implement array of structures in matlab.structure containing two fields.

Best Answer

array1=1:10
array2=21:30
out=struct('field1', num2cell(array1),'field2',num2cell(array2))