for loop append variable
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Stephen23
el 18 de Feb. de 2022
That is why I showed you this approach:
{list.name}.'
Much simpler than a loop.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!