For loop indexing of variable
Afficher commentaires plus anciens
I want to store variable result inside avector and call it at the end of function exeution
i write this code and have Index exceeds array bounds
N=10;
Mp=1;
for i=1 : N
M2 =[Mp(i)];
Mp=Mp+1;
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!