convert nested struct to matrix
显示 更早的评论
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 个评论
Dheeraj Singh
2019-10-3
编辑:Dheeraj Singh
2019-10-3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!