how to draw periodic functions in MATLAB

2 次查看(过去 30 天)
How can I draw g(t)=|t| for t [-1,1], with g(t)=g(t+2) (with period T=2)

回答(1 个)

Sangeetha Jayaprakash
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