i have a function (f=x^2 for -pi/2<=x<=pi/2) and i want to make this function periodic , how i can do it?

Antworten (1)

the cyclist
the cyclist am 29 Okt. 2021

0 Stimmen

I think this does what you want:
x = -3*pi : 0.01 : 3*pi;
f = @(x) (mod(x+pi/2,pi) - pi/2).^2;
figure
plot(x,f(x))

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 29 Okt. 2021

Beantwortet:

am 29 Okt. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by