for loop append variable
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i'd like to append variable n0 to n1
but this code made just last variable
Thanks!
leng=length(list)
n0=[]
for i=1:leng
nl=list(i).name
end
6 commentaires
Stephen23
le 18 Fév 2022
That is why I showed you this approach:
{list.name}.'
Much simpler than a loop.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!