MATLAB: Wraptopi without mapping toolbox

wraptopi

I dont have mapping toolbox with my license and I need to carry out wrap to pi for my data. Is there any way to do the same without the mapping toolbox?

Best Answer

Something like this
x = 3.3*pi;
wraped_x = mod(x+pi, 2*pi)-pi;
Related Question