Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Forced Van der Pol... ODE help... Update function
Hi i've looked for help with this problem all over but found little to no help.
I'm simply trying to model a forced Van der Pol oscillator (ie instead of making diff equation = 0 now make it =cos(wt)). I need to update my function "vdp" 's 't' term as i run the code. I don't see how i can do this (ie i want the t term in the cos function to increment for each execution). Please any help would be greatly appreciated.
function dydt = vdp(t,y,Mu)
% End solvevdp.m
t = [1:100:1]
ode= @(t,y) vdp(t,y,Mu);
title('van der Pol Equation, mu = 1000')
axis([0 3000 -3 3])
0 · ·