Azzera filtri
Azzera filtri

Find heights of tables within an MxN cell

8 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by