Matlab ilaplace for a constant

Discussion in 'Homework Help' started by tquiva, Feb 22, 2011.

  1. tquiva

    Thread Starter Member

    Oct 19, 2010
    176
    1
    I'm kind of new to Matlab. Would anyone know how to fix this problem?

    I keep getting an error with the following code:

    ??? Undefined function or method 'ilaplace' for input arguments of type 'double'.

    Code ( (Unknown Language)):
    1. % Function V
    2. syms V real; syms s;
    3. V = 1;
    4. v = ilaplace(V);
    5. pretty(v)
    I know that the answer is 1/s but this error keeps coming up?
     
  2. Georacer

    Moderator

    Nov 25, 2009
    5,142
    1,266
    By defining V=1, you replace its symbolic identity and turns it into a double. You can try the following instead:
    Code ( (Unknown Language)):
    1.  
    2. V=sym(1);
    3.  
     
Loading...