How do I make a 3 dimensional matrix?

回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by