simply, i want to plot(scatter) angles without discontinuity which range are lying between 0 to 2π .ex: circular data points(point cloud) angles.
How to find angles, which lies between -π and -2π.Because matlab returns only values between ±π using atan or atand function.
조회 수: 5 (최근 30일)
이전 댓글 표시
Because matlab returns only values between ±π using 'atan' or 'atand 'functions.i want to get an angle between -π and -2π. Are there any solution to do that using functions? i'm finding a solution without using a absolute value(abs function)
thank you
댓글 수: 2
답변 (2개)
Roger Stafford
2015년 6월 2일
Do this to your angle, 'a':
a = mod(a,pi)-2*pi;
It will then lie between -2*pi and -pi.
[Note: atan gives angles between -pi/2 and +pi/2, not -pi and +pi.]
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!