Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
could anyone help me to solve the issue in the figure.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Walter Roberson
il 1 Nov 2019
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 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!