I am trying to create a multidimensional array with nested FOR loop.The problem iam facing is calling the pages after each iteration. Because i have to do use certain condition on each page.
1 次查看(过去 30 天)
显示 更早的评论
clc;
clear all;
A=zeros(2,2,14);
for z =1:14
for y =1:2
for x = 1:2
A(x,y,z) =x+y+z;
end
end
end
% Need each page of A matrix
3 个评论
Jan
2018-8-5
@Ravi: Today I've formatted your code. Please use the "{} Code" button by your own. Thanks.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!