Question over pseudo algorithm

5 ビュー (過去 30 日間)
GCats
GCats 2021 年 3 月 29 日
コメント済み: darova 2021 年 3 月 29 日
Hi all!
I'm trying to convert this pseudo algorithm into code. Essentially, I am solving a differential equation with ode45 which gives results in the time domain. Since my function is non-linear, I want to take the last value of each iteration, store it and then FFT the new signal. In the end, I want the results in the frequency domain.
Attahched the pseudocode I'm trying to follow. I'm especially lost on how to create the line: y0(f_i+1) = y_end(f_i)
Any help is appreciated, thank you!
  2 件のコメント
darova
darova 2021 年 3 月 29 日
Where is an equation for ODE45? Please show your attempts. DO you have a code?
darova
darova 2021 年 3 月 29 日
im sorry, removed the picture in the qustion for instance. Can you upload it again?

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

採用された回答

Jan
Jan 2021 年 3 月 29 日
y0(f_i+1) = y_end(f_i):
y0 = y(end, :)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by