wraptopi without mapping toolbox

22 visualizaciones (últimos 30 días)
Anjali Sharma
Anjali Sharma el 20 de Oct. de 2020
Editada: LongYao Li el 10 de Oct. de 2021
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?

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 20 de Oct. de 2020
Something like this
x = 3.3*pi;
wraped_x = mod(x+pi, 2*pi)-pi;
  1 comentario
LongYao Li
LongYao Li el 10 de Oct. de 2021
Editada: LongYao Li el 10 de Oct. de 2021
like this?
x=3.3*pi;
wraped_x = x-floor((x+pi)/(2*pi))*2*pi;

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by