フィルターのクリア

Find heights of tables within an MxN cell

8 ビュー (過去 30 日間)
Nicholas Scott
Nicholas Scott 2022 年 3 月 8 日
コメント済み: Voss 2022 年 3 月 9 日
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!!!
Voss
Voss 2022 年 3 月 9 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by