wraptopi without mapping toolbox

22 次查看(过去 30 天)
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?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-10-20
Something like this
x = 3.3*pi;
wraped_x = mod(x+pi, 2*pi)-pi;
  1 个评论
LongYao Li
LongYao Li 2021-10-10
编辑:LongYao Li 2021-10-10
like this?
x=3.3*pi;
wraped_x = x-floor((x+pi)/(2*pi))*2*pi;

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by