Filter löschen
Filter löschen

how to draw periodic functions in MATLAB

3 Ansichten (letzte 30 Tage)
Junkai Gong
Junkai Gong am 21 Mai 2017
How can I draw g(t)=|t| for t [-1,1], with g(t)=g(t+2) (with period T=2)

Antworten (1)

Sangeetha Jayaprakash
Sangeetha Jayaprakash am 23 Mai 2017
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)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by