calculating maximum error
Afficher commentaires plus anciens
I created an vector in matlab that represents an object moving at a velocity v(t) = 5 + 7*t^2 starting from the position x(2) = 5 at t = 2. This vector is called x and is: x2 + 5*t + 7*t.^3/3 (x2 equals 5) (this vector was solved analytically, i.e. I just integrated the velocity function. The next vector, called xtrap, was created using MATLAB's cumtrapz function: xtrap = cumtrapz(t,v) + x2.
How do I calculate the maximum error between these two solutions? Thanks.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Operators and Elementary Operations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!