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.
조회 수: 3 (최근 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!