convert nested struct to matrix
Mostrar comentarios más antiguos
Hi
I have the following struct and would like to convert Stocks_10.Close into a matrix for vectorization

The following worked for equal fields.
stocks_10_cell = [stocks_10.Close]';
The issue is the data in Number 8, insted 757x1, it's 668x1.
I got the error:
Error using horzcat
Dimensions of arrays being concatenated are not consistent.
Does someone have a solution?
Thank you
Carsten
1 comentario
Dheeraj Singh
el 3 de Oct. de 2019
Editada: Dheeraj Singh
el 3 de Oct. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!