convert nested struct to matrix
Show older comments
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 Comment
Dheeraj Singh
on 3 Oct 2019
Edited: Dheeraj Singh
on 3 Oct 2019
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!