How do I make a 3 dimensional matrix?

Answers (1)

How about one of these
array3d = zeros(2,3,4);
array3d = ones(2,3,4);
array3d = rand(2,3,4);

Asked:

on 7 Aug 2014

Answered:

on 7 Aug 2014

Community Treasure Hunt

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

Start Hunting!