Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I have a set of data which values of a certain parameter & the different time steps at which those values were obtained (Using a variable step solver). I wish to integrate this parameter over these time steps in Matlab

1 回表示 (過去 30 日間)
Bhavesh Gandhi
Bhavesh Gandhi 2018 年 8 月 21 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I used a variable step solver to run a simulation which led to different values of parameter x evaluated over different time steps. Now the task is to integrate these values of x over the variable time steps. Can this be achieved in Matlab. Is there any recommended code or in-built Matlab function which could be used to achieve this ?

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 8 月 21 日
trapz() passing in the time step information as the "x" data.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by