Very simple tolerance solution
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Truman Cassady
am 7 Mär. 2019
Bearbeitet: John D'Errico
am 7 Mär. 2019
I just need to find the index of when the data first exceeds a value of 300.
1 Kommentar
John D'Errico
am 7 Mär. 2019
Bearbeitet: John D'Errico
am 7 Mär. 2019
Plrease don't post a picture of code!!!!!!! Code is text. Something you can triivially paste in, but also something we can trivially copy and paste ourselves.
Akzeptierte Antwort
John D'Errico
am 7 Mär. 2019
Bearbeitet: John D'Errico
am 7 Mär. 2019
If your goal is to find the first point where the tempterature exceeds 300, then write code targeted at that goal. So...
What is the condition?
hgtemp > 300
How can we find the FIRST index where that happens? Just use find.
find(hgtemp > 300, 1,'first')
In fact, this is not a problem about tolerances at all. Not even remotely. See that no tolerance was employed by the line of code I wrote, nor did I need one.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!