Azzera filtri
Azzera filtri

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)
jaah navi
jaah navi il 1 Nov 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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.

Risposte (1)

Walter Roberson
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.

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by