How to use If elseif else in array ?
古いコメントを表示
I have variables of the image call 'IGray' in picture below

now I want to write the if elseif code to find amount of the value that I separate in 3 ways
- the value < 50
- the value 50-220
- the value > 220
primary, I try to write but it can not . As shown below
which I want ThW, ThWB and ThB show in the workspaces and it can double click to show all variables.

Please help me TT
Thank you very much ^^
3 件のコメント
Omer Yasin Birey
2019 年 2 月 6 日
" I want ThW, ThWB and ThB show in the workspaces and it can double click to show all variables"
Are these 'ThW, ThWB, ThB' some variables. And do you want to display them for each of the IGray variable that satisfies the condition?
Steven Lord
2019 年 2 月 6 日
Do you want to display ThW in the Command Window once if any of the elements in Threshold_IGray is greater than or equal to 220, once if all the elements in Threshold_IGray is greater than or equal to 220, or a number of times equal to the number of elements in Threshold_IGray that are greater than or equal to 220? You're likely to get a different number of ThW's displayed in each of those three scenarios.
Ajaree Rattanaharn
2019 年 2 月 7 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
