12345678902 11 MATHLAB_FB.m x + % Define symbolic variable 's' used in Laplace transforms syms s % Prompt the user to enter a Laplace-domain function F(s) F = input('Enter the function of s: '); % Compute the inverse Laplace transform of F(s), resulting in time-domain f(t) filaplace (F); % Display the result of the inverse Laplace transform as a string disp(['f(t), char(f)]); Command Window >> MATHLAB_FB - Enter the function of s: (1/(s+2)) (1/((s+2)^2)) + (2/((s+2)^4)) f(t) exp(-2*t) - t*exp(-2*t) + (t^3*exp(-2*t))/3 >>

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.2: The If-else Statement
Problem 8E
icon
Related questions
Question

I need help on inculding additonal code where I can can do the opposite code of MatLab, where the function of t that I enter becomes the result of F(t), in other words, turning the time-domain f(t) into the frequency-domain function F(s): 

12345678902
11
MATHLAB_FB.m x +
% Define symbolic variable 's' used in Laplace transforms
syms s
% Prompt the user to enter a Laplace-domain function F(s)
F = input('Enter the function of s: ');
% Compute the inverse Laplace transform of F(s), resulting in time-domain f(t)
filaplace (F);
% Display the result of the inverse Laplace transform as a string
disp(['f(t), char(f)]);
Command Window
>> MATHLAB_FB
-
Enter the function of s: (1/(s+2)) (1/((s+2)^2)) + (2/((s+2)^4))
f(t) exp(-2*t)
-
t*exp(-2*t) + (t^3*exp(-2*t))/3
>>
Transcribed Image Text:12345678902 11 MATHLAB_FB.m x + % Define symbolic variable 's' used in Laplace transforms syms s % Prompt the user to enter a Laplace-domain function F(s) F = input('Enter the function of s: '); % Compute the inverse Laplace transform of F(s), resulting in time-domain f(t) filaplace (F); % Display the result of the inverse Laplace transform as a string disp(['f(t), char(f)]); Command Window >> MATHLAB_FB - Enter the function of s: (1/(s+2)) (1/((s+2)^2)) + (2/((s+2)^4)) f(t) exp(-2*t) - t*exp(-2*t) + (t^3*exp(-2*t))/3 >>
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage