could anyone help me to solve the issue in the figure.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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.
Answers (1)
Walter Roberson
on 1 Nov 2019
0 votes
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.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!