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

2 ビュー (過去 30 日間)
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

回答 (1 件)

Alan Stevens
Alan Stevens 2024 年 6 月 17 日
Look up ode45 for the integration (for a fixed set of parameters) and fminsearch for fitting the parameters to known data.

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by