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