Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab question

  1. Feb 28, 2008 #1
    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.
     
  2. jcsd
  3. Feb 29, 2008 #2
    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?
     
  4. Feb 29, 2008 #3
    I was able to fix it. Apparently i was using / in f() instead of ./.

    Thanks for your help.
     
  5. Aug 7, 2009 #4
    i'm novice to the matlab i want to do the quantization techniques in the matlab so plz help me out.
     
  6. Aug 20, 2009 #5
    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
     
  7. Aug 25, 2009 #6

    ESP

    User Avatar

    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)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Matlab question
  1. MATLAB questions (Replies: 0)

  2. MATLAB question (Replies: 2)

  3. MATLAB question (Replies: 1)

  4. Matlab question (Replies: 2)

  5. Matlab question (Replies: 10)

Loading...