Borrar filtros
Borrar filtros

Defining boundary condition at infinite x for ODE

8 visualizaciones (últimos 30 días)
Daniyar
Daniyar el 8 de Mzo. de 2013
Hello,
I am solving ODE, and how can I write Matlab command to express the termninal x value as infinite?

Respuestas (1)

Youssef  Khmou
Youssef Khmou el 9 de Mzo. de 2013
hi Daniyar, You mean setting Tspan as Inf ? if yes then :
i do not think its logic to make the bound as Inf , but instead make a large value , ok try this :
>>f=@(y,x) sin(x+y).*exp(-x.^2-y.^2)
>>[t,y]=ode15s(f,[1 2],[0 Inf])
>>[t,y]=ode15s(f,[1 2],[0 1e+9])
does this helps ?

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by