Convert discontinuos angles to continuous angle

조회 수: 8 (최근 30일)
Paulo Oliveira
Paulo Oliveira 2014년 5월 23일
댓글: Paulo Oliveira 2014년 5월 24일
Hi, I need help to convert discontinuous angles to continuous angle in my plots, anyone to help me? I saw something to matlab simulink, but I would want to change in code. Thank you for your help.
For other words, I have this plot,
and I want to convert for this plot,
Best wishes, Paulo Oliveira

채택된 답변

Matt J
Matt J 2014년 5월 23일
idx=theta>0;
theta(idx)=theta(idx)-360;
  댓글 수: 8
Matt J
Matt J 2014년 5월 23일
but this function is just used in rad
Working in degrees would be just a simple modification
unwrap(thetaDegrees*pi/180)*180/pi;
Paulo Oliveira
Paulo Oliveira 2014년 5월 24일
Yap, it works perfectly. Thank you very mush. ;)
Best wishes PO

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by