For loop alternative method
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
2 Commenti
Risposta accettata
Torsten
il 31 Ago 2022
Spostato: Matt J
il 31 Ago 2022
SensorA_under_30_degrees = SensorA(Temperature<30)
2 Commenti
Torsten
il 31 Ago 2022
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 ?)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!