MATLAB Matlab ilaplace command questions

  • Thread starter Thread starter bassplayer142
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion revolves around the use of the ilaplace command in MATLAB, specifically the command ilaplace(1/(s-1)). The user is confused because the output they receive is 1 - dirac(t), while they expect the result to be exp(t), as shown in the MATLAB help documentation. A suggestion is made that the user may have incorrectly typed the command as ilaplace(1/s-1), which would lead to the unexpected output. The user later realizes that the issue was indeed related to the placement of parentheses in the command. This highlights the importance of syntax accuracy in MATLAB commands to achieve the desired results.
bassplayer142
Messages
431
Reaction score
0
I am using the ilaplace command from MATLAB and it keeps spitting out the dirac delta function. I typed the exact command in the MATLAB help section and it still gives me this. for example I type in this...

ilaplace(1/(s-1))

and I get this...

1 - dirac(t)

below is a copy of MATLAB help file that has this exact command with the result I'm after.

Examples:
syms s t w x y
ilaplace(1/(s-1)) returns exp(t)

Any help would be great. I'm thinking it is some format command or something beforehand.
 
Physics news on Phys.org
I think you must have mistakenly typed it as >> ilaplace(1/s-1)
Thats why you got 1 - dirac(t).
 
matematikawan said:
I think you must have mistakenly typed it as >> ilaplace(1/s-1)
Thats why you got 1 - dirac(t).

I'm not quite sure what you mean? Sorry for the much delayed response.

EDIT: AHH I see what your saying now with the parentases!
 

Similar threads

Replies
4
Views
2K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
4
Views
1K
Replies
5
Views
2K
Back
Top