Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Integral of Signals/Vectors NOT functions

1 Ansicht (letzte 30 Tage)
maxmathlab
maxmathlab am 18 Jan. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have a vector of obj. RPM of the wheels and want to know when it reaches a fixed distance.
rpm_vector=[0 0 0 50 150 300 200 30 2 0];
distance= 50;
is it better to use trapz() or cumsum()? I tested trapz with x*x from 1 to 5 and trapz()=42 / integral()=41.67.
  1 Kommentar
Jordan Ross
Jordan Ross am 24 Jan. 2017
Hello,
It sounds like "trapz" might be the better choice since it sounds like you want a numerical approximation for integration.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by