How can I get a ramp response for the transfer function in the MATLAB?
51 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
...
0 Kommentare
Antworten (2)
Ameer Hamza
am 29 Apr. 2018
Use lsim(). It can calculate dynamic response of any system to any input signal. For ramp signal define your input as
t = 0:0.1:10; % the time vector
transferFunction = tf(1, [1, 1])
input = t; % assuming ramp with slope=1
y = lsim(tf, input, t)
4 Kommentare
Kevin Chen
am 27 Mai 2021
@ahmad Elshafee I believe Ameer intended to write
y = lsim(transferFunction, input, t);
rather than
y = lsim(tf, input, t);
FARAH
am 3 Nov. 2022
%CS_G6
%EXERCISE 2.2
numerator = 0.1;
denominator = [1,0.02]; %define the first order transfer function
sys = tf(numerator,denominator); % transfer function
step (sys) % plotting step response
impulse (sys) % plotting impulse response
ramp(sys); % plotting ramp response
1 Kommentar
Siehe auch
Kategorien
Mehr zu Dynamic System Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

