필터 지우기
필터 지우기

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 CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by