i USE THE CODING FOR SHOW MULTIPLE CIRCLES, i observe changes when change the scale of window (change points which are inside circles) )

조회 수: 2 (최근 30일)
C=[39 41.2500000000000;34.3333333333333 93.6666666666667;85.3333333333333 57.6666666666667]
X=[28 92; 44 96;45 61;87 66;18 7;44 35;31 93;75 44;94 63;49 62]
R=[401.753966999705 99.4428926011753 171.334630345285]
figure
hold on
for i=1:3
w=plot(C(i,1), C(i,2),'go', 'MarkerSize', R(i) ,'color','blue','LineWidth',1.5); % Plot small circle.
%legend(b1(1:i),groups(1:i))
gscatter(C(:,1),C(:,2));
gscatter(X(:,1),X(:,2));
end
hold off

답변 (1개)

Image Analyst
Image Analyst 2021년 11월 26일
I don't believe the marker size is related to the scale of the axes. It's independent.
If you want to display circles where the radius of the circle is related to the values of your data you should use viscircles(). It's in the Image Processing Toolbox.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by