From: trung trinh on
i try to test dsolve command.
>> syms t
>> f = t;
>>x = dsolve('D2x= -x+f')
but i want f in dsolve is function of variable t. how to do with manner use syms command
From: Wayne King on
"trung trinh" <trungkstn(a)gmail.com> wrote in message <hq1sok$gsq$1(a)fred.mathworks.com>...
> i try to test dsolve command.
> >> syms t
> >> f = t;
> >>x = dsolve('D2x= -x+f')
> but i want f in dsolve is function of variable t. how to do with manner use syms command

Hi, I'm not sure exactly what you are asking since f=t

do you just mean?

syms t
f = t;
x = dsolve('D2x= -x+f','f');

Wayne
From: trung trinh on
No, x and f is function of t