Community Profile

photo

shir hartman


Last seen: 10 months ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


I dont understand the error
I would like it to stop calculating the ode when both functions meet the requirement that dx=0 , and I did: alpha=0.5; beta=0....

1 year ago | 1 answer | 0

1

answer

Question


I want to do stop condition which demand dx=0 in coupled differential equations
I have two equations and I want to stop the integration when those two reach to dx=0. the equations : dx/dt=2*x-x^2+0.5*x*y ...

1 year ago | 2 answers | 0

2

answers

Question


I want to do a stop condition in ode45 that he demands dx=0
this is my code And I don't understand why it doesn't work :( AnonFun=@(t,x)(5*x-1*x^2); Opt=odeset("Events",@myEvent); [t,...

1 year ago | 2 answers | 0

2

answers

Question


Is ode45 always calculate the entire function even if she has been asked only for specific values?
t0=0; tf=5; r=5; s=1; AnonFun=@(t,x)(r*x-s*x^2); [t,x]=ode45(AnonFun,[t0,tf],1); plot(t,x) For example , if i write [t,x]...

1 year ago | 1 answer | 0

1

answer