필터 지우기
필터 지우기

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 CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by