Very simple tolerance solution

조회 수: 3 (최근 30일)
Truman Cassady
Truman Cassady 2019년 3월 7일
편집: John D'Errico 2019년 3월 7일
I just need to find the index of when the data first exceeds a value of 300.
data.JPG
  댓글 수: 1
John D'Errico
John D'Errico 2019년 3월 7일
편집: John D'Errico 2019년 3월 7일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2019년 3월 7일
편집: John D'Errico 2019년 3월 7일
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개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by