Enter values c1 into an array
Generate an array within three loops
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponses (1)
David Hill
le 16 Jan 2020
count=1;
for n=.1:.1:.5
for m=.1:.1:.5
for k=1:5
c(count)=94*2.4^n*.4^m;%1^k is always 1, so it doesn't matter
count=count+1
end
end
end
2 commentaires
David Hill
le 16 Jan 2020
count=1;
a=[94 2.4 .4 1];
for n=.1:.1:.5
for m=.1:.1:.5
for k=.1:.1:5
c(count)=A(1,1)*A(1,2)^n*A(1,3)^m*A(1,4)^k;
count=count+1
end
end
end
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!