What is Causing an Error in My Matlab Code for Solving a System of Equations?

  • Context: MATLAB 
  • Thread starter Thread starter dexter90
  • Start date Start date
  • Tags Tags
    Matlab System
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
dexter90
Messages
14
Reaction score
0
I have function:

Code:
function dxdy = kkd(t,y)
x=y(1);
y=y(2);
dxdy(1)=-0.02*x+x*x*y+0.01;
dxdy(2)=0.02*x-x*x*y;

next

[t,y]=ode45(@kkd,[0 4],[0 10]);

but is error... Where is error??
 
Physics news on Phys.org
It is ok, work.

I greet.