how to draw periodic functions in MATLAB

조회 수: 1 (최근 30일)
Junkai Gong
Junkai Gong 2017년 5월 21일
답변: Sangeetha Jayaprakash 2017년 5월 23일
How can I draw g(t)=|t| for t [-1,1], with g(t)=g(t+2) (with period T=2)

답변 (1개)

Sangeetha Jayaprakash
Sangeetha Jayaprakash 2017년 5월 23일
You can use the plot function to draw in MATLAB as described in this link:
You can plot the function g(t) as follows:
t = -1:0.01:1; %this gives 201 points
g = abs(t);
plot(t,g)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by