Professional Documents
Culture Documents
Lab 04
Lab 04
Algorithm
Step 5: Stop
Code:
% Symbolic variables
syms s t;
% Standard Laplace transforms
F1 = 1/s; % Laplace transform of 1
F2 = 1/s^2; % Laplace transform of t
F3 = 1/(s^2 + 1); % Laplace transform of sin(t)
% Compute inverse Laplace transforms
F1 = ilaplace(F1, s, t);
F2 = ilaplace(F2, s, t);
F3 = ilaplace(F3, s, t);
% Display the results
disp(['Inverse Laplace transform of 1/s: ', char(F1)]);
disp(['Inverse Laplace transform of 1/s^2: ', char(F2)]);
disp(['Inverse Laplace transform of 1/(s^2 + 1): ', char(F3)]);
Out put: