How to set radius limits using compass?

조회 수: 23 (최근 30일)
Matthew Nichols
Matthew Nichols 2018년 9월 20일
답변: Prakhar Jain 2018년 10월 1일
I have a set of vector data with magnitudes between 1 and 1.08. Using compass, Matlab sets the default radius to between 0 and 1.5, making the differences between 1 and 1.08 indistinguishable. Using rlim does not work as compass uses a cartesian coordinate system. Is it possible to set the radius limits to between 1 and 1.1?
An example dataset: a = 1; b = 1.08; r = (b-a).*rand(50,1) + a; %magnitude
c = 0; d = 2*pi; direction = (d-c).*rand(50,1) + c;
[u,v] = pol2cart(direction,r); compass(u,v)

답변 (1개)

Prakhar Jain
Prakhar Jain 2018년 10월 1일

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by