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 Exchange에서 Data 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