How to set radius limits using compass?
11 ビュー (過去 30 日間)
古いコメントを表示
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)
0 件のコメント
回答 (1 件)
Prakhar Jain
2018 年 10 月 1 日
Hello Matthew,
You can follow the below for the same -> how-to-change-the-axis-limits-and-remove-alter-the-ticks-and-labels-for-a-compass-polar-plot
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!