How to plot this function ?

1 回表示 (過去 30 日間)
Wasp Hamberg
Wasp Hamberg 2018 年 10 月 31 日
コメント済み: Wasp Hamberg 2018 年 10 月 31 日
U(t)={=-t,t=(0,pi/2); = 0, (pi/2,pi)}

採用された回答

the cyclist
the cyclist 2018 年 10 月 31 日

Here is one way:

U = @(t) -(t<pi/2).*t + (t>=pi/2) * 0; % Don't really need that second term, since it is always zero
figure
tt = 0:0.01:pi;
plot(tt,U(tt),'.')
  1 件のコメント
Wasp Hamberg
Wasp Hamberg 2018 年 10 月 31 日
Thank you so much)))

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by