How to show size of this element ?

3 ビュー (過去 30 日間)
RuiQi
RuiQi 2018 年 11 月 9 日
回答済み: Image Analyst 2018 年 11 月 10 日
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 Center および File ExchangeFeature Detection and Extraction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by