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

1 view (last 30 days)
How can Make a structure that is 480 by 640 , and each cell has three fields X,Y,Z which are zero ?

Accepted Answer

Matt J
Matt J on 2 Jul 2013
Edited: Matt J on 2 Jul 2013
One way,
S.X=0;
S.Y=0;
S.Z=0;
S(1:480,1:640)=S;

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!