for loop append variable
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Stephen23
am 18 Feb. 2022
That is why I showed you this approach:
{list.name}.'
Much simpler than a loop.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!