Find heights of tables within an MxN cell

5 次查看(过去 30 天)
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!

采纳的回答

Voss
Voss 2022-3-8
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 个评论
Nicholas Scott
Nicholas Scott 2022-3-8
B-E-A-UTIFUL! I can absolutely work with that. That is fantastically simplistic. Thank you so much!!!

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by