Sequence of adding numbers
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Akmyrat
le 11 Juin 2014
Modifié(e) : José-Luis
le 11 Juin 2014
Hi i have like this question. Lets say i have this code : for i=1:4 C=2+i; end
this gives me this answer: C=3, C=4,C=5,C=6
BUT I want like this answer: C1=3, C2=4, C3=5, C4=6, which is with numbers after letter C. Can anyone help please...thanks :)
1 commentaire
Geoff Hayes
le 11 Juin 2014
Modifié(e) : Geoff Hayes
le 11 Juin 2014
This isn't all that different from your previous question http://www.mathworks.com/matlabcentral/answers/131244-string-value-and-sequently-representation….
Réponse acceptée
Azzi Abdelmalek
le 11 Juin 2014
Modifié(e) : Azzi Abdelmalek
le 11 Juin 2014
The best way is
for k=1:4
C(k)=2+k
end
Look at this link
Voir également
Catégories
En savoir plus sur Logical 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!