Info
此问题已关闭。 请重新打开它进行编辑或回答。
could anyone help me to solve the issue in the figure.
1 次查看(过去 30 天)
显示 更早的评论
I having the following code
h1 = figure('Name','Clusters');
hold on;
plot(xunit, yunit);
hold on
plot(ysd,xsd,'r^')
hold on
for k=1:clusterCount
plot(clustersA{k,1}(:,1),clustersA{k,1}(:,2),'o','Color',cc(k,:),'MarkerFaceColor',cc(k,:));
end
axis equal;
when i run the main code i am getting the attached figure with respect to the above code.
But in the figure I need to have the circle that should intersect in the middle of y axis (both left and right)
Could anyone please help me on this.
0 个评论
回答(1 个)
Walter Roberson
2019-11-1
You can set the axes XAxisLocation and YAxisLocation to 'origin';
Note: hold on stays in effect for the axes until you turn it off or clear the axes, so you do not need multiple hold on in your code.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!