- #1
TalonStriker
- 15
- 0
Hey guys,
I was just wondering if anyone knows how to set the initial conditions for ode45() if you know f(1.5) but NOT f(0)
Currently I have
>> ode45(f, [0 1 1.8 2.1], [1.5 .5])
But this creates the following error:
? Error using ==> funfun/private/odearguments
@(T,Y) (T-EXP(-T))/(Y+EXP(Y)) must return a column vector.
Thanks.
I was just wondering if anyone knows how to set the initial conditions for ode45() if you know f(1.5) but NOT f(0)
Currently I have
>> ode45(f, [0 1 1.8 2.1], [1.5 .5])
But this creates the following error:
? Error using ==> funfun/private/odearguments
@(T,Y) (T-EXP(-T))/(Y+EXP(Y)) must return a column vector.
Thanks.