How to integrate an implicit acceleration function to a fitting pair of graphs of velocity and displacement

2 visualizaciones (últimos 30 días)
Hello!
New to matlab, so sorry if the question appears a bit of dumb
Im currently trying to plot the displacement of a falling pellet which acceleration follows implicit function f = @(t,a) exp((4.33254*w)/(9.81-a) - t/0.1036881 - 0.418/(0.00032*v)) - ((0.013864*v*w)/((9.81-a)*(0.418+0.00032*v)) - (0.00032*v)/(0.418+0.00032*w))
Where v and w are parameters to be adjusted.
The goal here is to first calculate the integral of the function to obtain a velocity function where the initial velocity is equal to 0 when t=0 and then obtain the integral of the velocity function to calculate the displacememt, where x=h (yet another parameter) when t=0 as well
However I struggle to find the correct sets of tools for that
Any advice is appreciated!
The deceleration graph looks somewhat like this btw

Respuestas (1)

Alan Stevens
Alan Stevens el 17 de Jun. de 2024
Look up ode45 for the integration (for a fixed set of parameters) and fminsearch for fitting the parameters to known data.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by