I have a structure which includes some structures within itself. I want to get all the values in the inner structure and create a single column vector. How can I do that?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Seyed Navid Shoaiby
el 8 de Oct. de 2022
Comentada: Seyed Navid Shoaiby
el 9 de Oct. de 2022
for i = 1:120
A = [];
for j = 1:
A(j) = data(i).I;
end
end
I do not know how to define "j". "I" is a structure within "data". "data" includes 120 "I"s and each "I" includes between 720 to 760 values. I want all the "I" values in a vector.
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Structures 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!