How to increase the amplitude of a step signal?

11 ビュー (過去 30 日間)
Vincent Chan
Vincent Chan 2020 年 6 月 7 日
回答済み: Ameer Hamza 2020 年 6 月 7 日
Hi, can i know how to change the amplitude of unit step. The amplitude of the unit step shown here is 1. I wanna change it to 5.
s = tf('s');
G = (s+6)/((s+4)*(s+7)*(s+9)*(s+12));
T = feedback(G,1);
t = (0:0.05:0.2)';
unitstep = t>=0;
[y,t,x] = lsim(T,unitstep,t);
plot(t,y,'y',t,unitstep,'m')
xlabel('Time (sec)')
ylabel('Amplitude')
ylim([0 5])
title('Input-purple, Output-yellow')

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 6 月 7 日
Change line to
unitstep = 5*(t>=0);

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by