How to show size of this element ?

2 visualizaciones (últimos 30 días)
RuiQi
RuiQi el 9 de Nov. de 2018
Respondida: Image Analyst el 10 de Nov. de 2018
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 comentarios
Rik
Rik el 10 de Nov. de 2018
If you give a second input to size you can retrieve only the number of rows.
madhan ravi
madhan ravi el 10 de Nov. de 2018
Editada: madhan ravi el 10 de Nov. de 2018
is it a structure? upload your data file

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 10 de Nov. de 2018
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by