wraptopi without mapping toolbox
13 ビュー (過去 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?
0 件のコメント
採用された回答
Ameer Hamza
2020 年 10 月 20 日
Something like this
x = 3.3*pi;
wraped_x = mod(x+pi, 2*pi)-pi;
1 件のコメント
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!