Borrar filtros
Borrar filtros

Find heights of tables within an MxN cell

8 visualizaciones (últimos 30 días)
Nicholas Scott
Nicholas Scott el 8 de Mzo. de 2022
Comentada: Voss el 9 de Mzo. de 2022
Hello Community!
I have a M x 1 cell that has a table within each row of the cell. See screenshot for any confusion. I am trying to find the max table height within the cell before doing an if statement to ignore tables that have less than 75% of the maximum height of any table within the cell (to ignore animal cells that drift in and out of focus a significant portion of time within the microscope experiment).
For ease of recreation of my scenario, I have attached my cell that has tables within every row.
I have attempted to do something such as:
max(height(ArrayPR))
(and other iterations that are similar) to no avail. I'd think it'd be something easy, but I cannot figure it out.
Thank you!

Respuesta aceptada

Voss
Voss el 8 de Mzo. de 2022
load('matlab.mat');
table_heights = cellfun(@height,ArrayPR);
disp(table_heights)
250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 249 249 249 249 246 246 245 235 222 201 171 137 98 74 47 20 5
  2 comentarios
Nicholas Scott
Nicholas Scott el 8 de Mzo. de 2022
B-E-A-UTIFUL! I can absolutely work with that. That is fantastically simplistic. Thank you so much!!!
Voss
Voss el 9 de Mzo. de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by