Finding the location of particular value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Vinay Srinivasan
am 15 Feb. 2020
Kommentiert: Vinay Srinivasan
am 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Feb. 2020
Bearbeitet: Walter Roberson
am 15 Feb. 2020
[maxacc, maxaccidx] = max(acceleration);
maxaccvel = velocity(maxaccidx);
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!