Asked by Mohammed Sayan
on 28 Jun 2013

Hi Folks,

I have a function f(x)=-x that starts from [-pi:pi] and I wanna repeat this function for a few periods of (2*pi) with the amplitude ranged between [pi to -pi].

I appreciate your response.

*No products are associated with this question.*

Answer by Roger Stafford
on 28 Jun 2013

Accepted answer

f(x) = mod(-x+pi,2*pi)-pi;

Roger Stafford
on 28 Jun 2013

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 0 Comments