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

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 5월 4일

0 개 추천

so?
x = dsolve('2*Dw-w=2*t^2+1','w(0)= -1/3','t');
fff = eval(['@(t)' vectorize(x)]);

댓글 수: 2

Green Sal
Green Sal 2011년 5월 4일
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 2011년 5월 4일
fff(0:0.05:1)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by