- convert all of the row vectors to column vectors, and
- make sure that they all have the same number of elements (the last one only has five),
display a struct as table
25 次查看(过去 30 天)
显示 更早的评论
I wanted to display data as a table on the screen.
I thought that struct2table could do it , but instead it shows :
1×5 table
name carr cc cfc rel
___________ _____________ _____________ _____________ ____________
[1x10 cell] [1x10 double] [1x10 double] [1x10 double] [1x5 double]
Is there a way to display the values of cells and arrays instead ?
I attach the data/code ...
0 个评论
采纳的回答
Stephen23
2019-2-6
编辑:Stephen23
2019-2-6
First
then convert using struct2table. This is explained in the struct2table documentation: "struct2table converts a scalar structure array with n fields into an m-by-n table. Each field must have m rows."
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!