フィルターのクリア

How do I plot this graph on MATLAB?

1 回表示 (過去 30 日間)
Sudarshan
Sudarshan 2018 年 3 月 31 日
コメント済み: Hans Scharler 2018 年 4 月 1 日
Dear all,
I am having difficulty in plotting this particular graph on MATLAB. I know that I am supposed to use an if and/or for statement in order to plot this graph, but, I am not able to figure it out. Any help would be appreciated. I will be attaching the graph for your reference. Thank you for your time.
Best regards Sudarshan.
  1 件のコメント
Hans Scharler
Hans Scharler 2018 年 4 月 1 日
What are you building?

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 3 月 31 日
y = 50 * ones(size(t));
mask = t >= 0.2 & t <= 0.3;
y(mask) = -50;
mask = t >= 0.1 & t < 0.2;
y(mask) = 50 - (t(mask)-1/10) * 1000;
and so on.
  1 件のコメント
Sudarshan
Sudarshan 2018 年 4 月 1 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by