Question
sys = 1(1+s) input = 1/s - exp(-2*s)/s So, how can I get lsim output "sys*input" ?? I must make digital signal of input??
Expert Answer
Prashant Kumar
PhD Expert
Answered Aug 24, 2026
As a general approach, you can compute the impulse response of the product of the transfer function and the input.
H = tf(1,[1 1]); % assuming typo in the original question. U1 = tf(1,[1 0]); U2 = tf(1,[1 0],'InputDelay',2); t = 0:.001:10; y = impulse(H*(U1 - U2),t); figure;plot(t,y),grid
In your particular case, the output is the difference between the step response and the step response delayed by t=2:
% assumes that any(t==2) is true y1 = step(H,t); y2 = 0*y1; ii = find(t>=2); y2(t>=2) = y1(1:length(ii)); figure;plot(t,y,t,y1-y2,'x'),grid
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related matlab Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →