I have three vectors of the same length. Two of them contain the X
and Y
coordinates of what I want to plot. The third one contains values that I want to associate the radius of the plotted circle.
I have read that 'MarkerSize'
in plot
corresponds the number of points in the circumference, and if I want to use scatter
, the third vector corresponds to the area of the plotted circle.
Nonetheless, I want my third vector to be associated with the radius
As such, how to associate the size of the circles with the radius?
I have this using plot
:
hold on;
for nd = 1 : 24
plot(xL(nd), -yL(nd), 'o', 'MarkerFaceColor', 'g', 'MarkerEdgeColor', 'k', 'MarkerSize', attribute(nd))
end
And this using scatter
:
hold on;
for nd = 1 : 24
scatter(xL(nd), -yL(nd), attribute(nd), 'o', 'MarkerFaceColor', 'k', 'MarkerEdgeColor', 'k')
end
Thanks in advance for this help.