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.
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Jan
le 5 Août 2018
@Ravi: Today I've formatted your code. Please use the "{} Code" button by your own. Thanks.
Réponses (1)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!