Matlab ilaplace for a constant

Thread Starter

tquiva

Joined Oct 19, 2010
176
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'.

Rich (BB code):
% Function V
syms V real; syms s;
V = 1;
v = ilaplace(V);
pretty(v)
I know that the answer is 1/s but this error keeps coming up?
 

Georacer

Joined Nov 25, 2009
5,182
By defining V=1, you replace its symbolic identity and turns it into a double. You can try the following instead:
Rich (BB code):
V=sym(1);
 
Top