# How to graphs this gibbs fourier in matlab

How does one plot $y=|x|$ in MATLAB?

-
mathworks.com/matlabcentral/fileexchange/… Download this pkg and extract it to your path, now just follow his example. –  Shuhao Cao Oct 16 '12 at 18:24
I have rolled back the edit on this question to the original, and added the OP's updated question regarding $y=|x|$ to the post in order to maintain a sense of context and continuity with the question the OP is asking, as the disjunction of the two has led to some apparent confusion. @Albert if your original question is no longer relevant, feel free to comment, answer your own question, or edit the post as such. –  Arkamis Oct 16 '12 at 19:12

If you let $f(x) = |x|$ on $[-10,10]$ and be $20$-periodic, $f$ will be continuous, and I don't think it will exhibit the Gibbs phenomenon. –  Stefan Smith Oct 19 '12 at 0:48