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
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.