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 日

0 投票

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 件)

タグ

質問済み:

2020 年 10 月 20 日

編集済み:

2021 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by