MATLAB: How can Make a structure that is 480 by 640 , and each cell has three fields X,Y,Z which are zero

MATLABstructures

How can Make a structure that is 480 by 640 , and each cell has three fields X,Y,Z which are zero ?

Best Answer

One way,
S.X=0;
S.Y=0;
S.Z=0;
S(1:480,1:640)=S;
Related Question