Finding the location of particular value
2 views (last 30 days)
Show older comments
Vinay Srinivasan
on 15 Feb 2020
Commented: Vinay Srinivasan
on 15 Feb 2020
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 Comments
Accepted Answer
Walter Roberson
on 15 Feb 2020
Edited: Walter Roberson
on 15 Feb 2020
[maxacc, maxaccidx] = max(acceleration);
maxaccvel = velocity(maxaccidx);
4 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!