HOW to plot? i dont see any curve while plotting

2 ビュー (過去 30 日間)
STP
STP 2019 年 1 月 2 日
コメント済み: Walter Roberson 2019 年 1 月 3 日
alfa=5/3; tau1=2
E=-alfa .*exp(-tau1) + alfa
t1=0:0.1:4.4;
plot(t1,E)
plot(t1,E,'Linewidth', 2)

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 1 月 2 日
Your E is a scalar constant independent of t.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 1 月 3 日
alfa = 5/3;
tau1 = 2;
gamma = 1/sqrt(9.8085);
EeA = @(tau) -alfa .* exp(-tau) + alfa;
Ee1 = @(tau) ones(size(tau)) .* (-alfa .* exp(-tau1) + alfa);
EeB = @(tau) gamma .* exp(-(tau - tau1)) - alfa;
t = 0:0.1:4.4;
plot(t, EeA(t), '-k', t, Ee1(t), 'r^', t, EeB(t), '-b');
legend({'E_e(A)', 'E_{e_1}', 'E_e(B)'})

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

カテゴリ

Help Center および File ExchangeSignal Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by