Finding the location of particular value
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello
I have a matlab data file which has 4 variables like time,velocity ,acceleration . Each variable has 2000values . I need maximum acceleration,so I used max(acceleration).Now I need to know the velocity at maximum acceleration from the data. How to get that value .
댓글 수: 0
채택된 답변
Walter Roberson
2020년 2월 15일
편집: Walter Roberson
2020년 2월 15일
[maxacc, maxaccidx] = max(acceleration);
maxaccvel = velocity(maxaccidx);
댓글 수: 4
추가 답변 (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!