Using stairs to plot 2 functions

Hi all,
This is my first message so I take the opportunity to saludate all of you.
I am new with MATLAB so maybe its a very simple question, anyway I cant find the solution by myself.
I want to represent two functions in the same plot using stair command
I mean, instead of plotting with, for example
plot(t,avg,t,v);
I want to use stair command but no way to do it,
stair(t,avg,t,v) is not working
any help?
Thank you all.

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 26 日
編集済み: Azzi Abdelmalek 2013 年 1 月 26 日

2 投票

Stairs(t,avg)
hold on
Stairs(t,v)

1 件のコメント

Angel Ani
Angel Ani 2021 年 4 月 19 日
What is the code to plot inward stair as given in the image?

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Exploration についてさらに検索

タグ

質問済み:

2013 年 1 月 26 日

コメント済み:

2021 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by