Find heights of tables within an MxN cell

6 views (last 30 days)
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!

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!