how to know first element in Data struct
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
aldo
el 29 de Nov. de 2023
Comentada: Stephen23
el 29 de Nov. de 2023
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1555492/image.png)
i want the first element of all field in struct
>> whos Sis
Name Size Bytes Class Attributes
Sis 1x351 120517682 struct
Sis(1).data(1)
ans =
datetime
2008-01-01
but i want to know Sis(1).data(1) for all element in struct(351 element)
i can't to use
data=[Sis.data];
Error using datetime/horzcat
Dimensions of arrays being concatenated are not consistent.
0 comentarios
Respuesta aceptada
Más respuestas (0)
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!