Borrar filtros
Borrar filtros

help in dsolve

2 visualizaciones (últimos 30 días)
Green Sal
Green Sal el 4 de Mayo de 2011
i am trying to solve for the exact solution using dsolve like:
x = dsolve('2*Dw-w=2*t^2+1','w(0)= -1/3','t');
how can i generate the values for x between 0:0.05:1 and tabulate it with other functions to solve the ODE.
Please help.
Thank you

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 4 de Mayo de 2011
so?
x = dsolve('2*Dw-w=2*t^2+1','w(0)= -1/3','t');
fff = eval(['@(t)' vectorize(x)]);
  2 comentarios
Green Sal
Green Sal el 4 de Mayo de 2011
i got that part, but how would i generate all the values between 0 and 1 for a step stize of 0.05 , or for t=0:0.05:1 ?
Andrei Bobrov
Andrei Bobrov el 4 de Mayo de 2011
fff(0:0.05:1)

Iniciar sesión para comentar.

Más respuestas (0)

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