Showing angles around plot in matlab / octave -
I can create a plot with pol2cart, but how can I show angles at the end of the lines? See the code below:
Hold down; = 0:20 for angle: (360-20) [x1, y1] = poll 2 cart (angle / 180 * p, [0 2]); Plot (x1, y1, 'r') rho = 0: 0.1: 2 end to [x1, y1] = pol2cart (0: 0.01: 2 * pi, rho); Plot (x1, y1, 'b') end axis is equal to
I am trying to show the scale of the angle to see the image below. Please note, to show all the numbered angles only to show what I am trying to do, I did not attract the first couple
PS: I am using Octave 3.8.1 Which tries to use the same language syntax, Matlab
you can do something like
step = 20; R = 2.2; IDX = 0: Step: 360-step text (r * cos (pi * idx / 180), r * sin (pi * idx / 180), num2str (idx), ... 'horizontal alignment', 'center' To optimize, axis (1.05 * [- - - RR - '' color '', [1.55])
RR]) Include Ax like
(It works for MATLAB, I do not know whether the syntax is the same.)
Comments
Post a Comment