how to draw periodic functions in MATLAB
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I draw g(t)=|t| for t [-1,1], with g(t)=g(t+2) (with period T=2)
댓글 수: 0
답변 (1개)
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!