Community Profile

photo

shir hartman


Last seen: 10 Monate vor Aktiv seit 2022

Followers: 0   Following: 0

Statistiken

  • Thankful Level 2

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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....

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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,...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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]...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort