How can I get a ramp response for the transfer function in the MATLAB?

47 ビュー (過去 30 日間)
Marianna Diab
Marianna Diab 2018 年 4 月 29 日
コメント済み: Walter Roberson 2024 年 12 月 14 日
...

回答 (2 件)

Ameer Hamza
Ameer Hamza 2018 年 4 月 29 日
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 件のコメント
ahmad Elshafee
ahmad Elshafee 2020 年 12 月 15 日
it returns
Error using lsim (line 88)
Not enough input arguments.
Kevin Chen
Kevin Chen 2021 年 5 月 27 日
@ahmad Elshafee I believe Ameer intended to write
y = lsim(transferFunction, input, t);
rather than
y = lsim(tf, input, t);

サインインしてコメントする。


FARAH
FARAH 2022 年 11 月 3 日
%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
Unrecognized function or variable 'ramp'.

カテゴリ

Help Center および File ExchangeDynamic System Models についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by