Selecting data in an array based on a logical value array?

19 ビュー (過去 30 日間)
Donggyu Jang
Donggyu Jang 2019 年 8 月 11 日
編集済み: Stephan 2019 年 8 月 11 日
Hello all.
I've recently found code that looked strange to me. See the below (this example is from MATLAB help for table).
Table_Example_1.png
Table_Example_2.png
The dark orange boxes show that data in a numeric array variable (here, it is 'T.BMI') can be directly selected by a logical value array. It seems useful to select a specific data withtout using a loop (so the calculation speed would be increased), but I don't know how this way of accessing data in a array is possible or works. Could you provide logical explanation of it?

採用された回答

Stephan
Stephan 2019 年 8 月 11 日
編集済み: Stephan 2019 年 8 月 11 日

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by