Register to reply

Matlab question

by TalonStriker
Tags: matlab
Share this thread:
TalonStriker
#1
Feb28-08, 02:31 PM
P: 15
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.
Phys.Org News Partner Science news on Phys.org
NASA team lays plans to observe new worlds
IHEP in China has ambitions for Higgs factory
Spinach could lead to alternative energy more powerful than Popeye
LeBrad
#2
Feb29-08, 09:38 AM
LeBrad's Avatar
P: 212
You should be able to solve on arbitrary time intervals [ta,tb] going forwards or backwards in time. Your error looks like it's coming from your function f. What does it look like?
TalonStriker
#3
Feb29-08, 08:03 PM
P: 15
I was able to fix it. Apparently i was using / in f() instead of ./.

Thanks for your help.

satish kumar
#4
Aug7-09, 08:44 AM
P: 1
Matlab question

i'm novice to the matlab i want to do the quantization techniques in the matlab so plz help me out.
mfarooq52003
#5
Aug20-09, 04:58 AM
P: 22
Hi There
I was wondering if anyone knows how to write pentadiagonal matrix of any dimension in Matlab with maindiagoanl 10, super diagonal 3, -3 and lower diagonal 2, -2.

Thanks
ESP
#6
Aug25-09, 12:21 AM
P: 1
Dear Friends,

I have a problem in MATLAB programming. I need to know how to correct this error,
Undefined function or method 'imp' for input arguments of type
'double'.

Error in ==> FilterRealizationRadar at 9
fil(i)=imp(n-i+1);

Please can anyone help this problem out???
Sincerely
Elangoven Sundrason Pillai (ESP)


Register to reply

Related Discussions
Matlab ode question Math & Science Software 2
MATLAB question Math & Science Software 2
MATLAB! Question Math & Science Software 1
Matlab Question Math & Science Software 4
Matlab question Math & Science Software 0