How to show size of this element ?

1 次查看(过去 30 天)
RuiQi
RuiQi 2018-11-9
How can I print the shape of bbox{1,1}. I want to see that there are 2 rows in bbox{1,1}.
size(bbox{1,1})
Does not work.
  2 个评论
Rik
Rik 2018-11-10
If you give a second input to size you can retrieve only the number of rows.
madhan ravi
madhan ravi 2018-11-10
编辑:madhan ravi 2018-11-10
is it a structure? upload your data file

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2018-11-10
What does this hsow
numRows = length(fieldnames(bbox{1,1}))
I'm thinking that fieldnames would be a cell array with the fields '1' and '2' since that's what your screenshot shows as the fields.

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by