Finding the location of particular value

3 ビュー (過去 30 日間)
Vinay Srinivasan
Vinay Srinivasan 2020 年 2 月 15 日
コメント済み: Vinay Srinivasan 2020 年 2 月 15 日
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 .

採用された回答

Walter Roberson
Walter Roberson 2020 年 2 月 15 日
編集済み: Walter Roberson 2020 年 2 月 15 日
[maxacc, maxaccidx] = max(acceleration);
maxaccvel = velocity(maxaccidx);
  4 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 15 日
The second output of max is the index where the data was located.
Vinay Srinivasan
Vinay Srinivasan 2020 年 2 月 15 日
ok thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by