wraptopi without mapping toolbox

13 ビュー (過去 30 日間)
Anjali Sharma
Anjali Sharma 2020 年 10 月 20 日
編集済み: LongYao Li 2021 年 10 月 10 日
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