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!