For loop alternative method
3 次查看(过去 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 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!