Question over pseudo algorithm

1 view (last 30 days)
GCats on 29 Mar 2021
Commented: darova on 29 Mar 2021
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!
darova on 29 Mar 2021
im sorry, removed the picture in the qustion for instance. Can you upload it again?

Sign in to comment.

Accepted Answer

Jan on 29 Mar 2021
y0(f_i+1) = y_end(f_i):
y0 = y(end, :)

More Answers (0)


Community Treasure Hunt

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

Start Hunting!