Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Hi. i want to plot some thing like this picture how can i do this ?

조회 수: 1 (최근 30일)
david tito
david tito 2015년 6월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
for 110<t<195 -----------> -5<y<5 else y=0

답변 (2개)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015년 6월 5일
You may have to do this with two plot commands,
one to create a red line
one to create a gigantic square, which you can do it by plotting a single point in the position of the square.
you have to change the plot marker to some that produces a square, I'm not sure if the square is fulled or not. and increase the font size or marker size
search for plot and find marker and .... properties.
Give it a try
  댓글 수: 2
david tito
david tito 2015년 6월 5일
i want a continious function not only rectangle look at this picture

david tito
david tito 2015년 6월 5일
I search the code that can give me this graph

Community Treasure Hunt

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

Start Hunting!

Translated by