For loop alternative method
2 ビュー (過去 30 日間)
古いコメントを表示
Hi
Instead of using a long for loop and if statement, is there alternative method of anylsing a array to on display values which are above or below a certain limit?
For example when sensor is above certain value?
採用された回答
Torsten
2022 年 8 月 31 日
移動済み: Matt J
2022 年 8 月 31 日
SensorA_under_30_degrees = SensorA(Temperature<30)
2 件のコメント
Torsten
2022 年 8 月 31 日
And you get an error message ?
Then maybe iot_no2_we_voltage and iot_temperture don't have the same length.
(Shouldn't it be "iot_temperature" instead of "iot_temperture" or did you want to save a character in writing ?)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!