How can i integrate an array using the trapz function
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tariq Hammoudeh
am 3 Mär. 2023
Kommentiert: Tariq Hammoudeh
am 3 Mär. 2023
If i have the following data
time=[1 2 3 4 5] %time in seconds
acceleration=[1.1 1.2 1.3 1.4 1.5]
Then how can I integrate acceleration and get the velocity at every second in the form of an array.
I tried v=trapz(acceleration);
but that just integrates acceleration and returns a single value
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation 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!