Xavipersonal
Junior Member level 1
Hi everybody,
I am implementing a duffing oscillator. Actually, I have done it in Simulink and I am trying to model it in Matlab but I dont know how to implement the integrator?
This is the way I have tried: integral(j)=ts*input(j)+integral(j-1); using a for loop. But results are pretty far from the ones I got with Simulink.
Thanks in advance
I am implementing a duffing oscillator. Actually, I have done it in Simulink and I am trying to model it in Matlab but I dont know how to implement the integrator?
This is the way I have tried: integral(j)=ts*input(j)+integral(j-1); using a for loop. But results are pretty far from the ones I got with Simulink.
Thanks in advance