フィルターのクリア

filtering output data from my integrator solution

1 回表示 (過去 30 日間)
Nicholas
Nicholas 2014 年 2 月 14 日
編集済み: Nicholas 2014 年 2 月 17 日
So i have a system of differntial equations that i am solving. I want to feed the output solutions into another equation but i only need the final output values from the end of my time step to feed into my next equation. how can i filter out all the other points?

回答 (1 件)

Jan
Jan 2014 年 2 月 14 日
Do you mean this:
[t, y] = ode45(...)
last_t = t(end);
last_y = y(end, :);
?
  1 件のコメント
Nicholas
Nicholas 2014 年 2 月 17 日
編集済み: Nicholas 2014 年 2 月 17 日
sorry I should have been more specific. I am using simulink. so after my simulation runs through I have a system of solutions. I only want to get the final output to feed into an external matlab code that i have written into the same simulink file. Im new to using this is it possible for me to share my file with you. I think that might help.
But ultimately yes that is what i want.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by