Call values from the struct file

4 ビュー (過去 30 日間)
Turbulence Analysis
Turbulence Analysis 2020 年 11 月 20 日
コメント済み: Ameer Hamza 2020 年 11 月 20 日
Hi all,
I have 6 x 1 struct file (attached here). Here it got two entries named Area and second (named bounding box) got four values sepearted by comma.
I would like to acces the fourth value in the bounding box based on the entry which got highest value in the Area
For instnace, in the present file, 6th row of the Area got the max value (i.e. 15525), for this corresponding fourth entry in the 'bounding box' i.e. 276 needs to accessed..
Please help me with this...

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 20 日
You can access it like this
[~,idx] = max([props.Area]);
props(idx).BoundingBox(4)
  2 件のコメント
Turbulence Analysis
Turbulence Analysis 2020 年 11 月 20 日
Great!!! Thanks, Ameer..
It's works perfectly..
Ameer Hamza
Ameer Hamza 2020 年 11 月 20 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by