How to align X and Y axis to middle of plot?
68 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
DESIREDDY SHASHIDHAR REDDY
le 28 Avr 2023
Modifié(e) : DESIREDDY SHASHIDHAR REDDY
le 28 Avr 2023
t = 0:5:360;
x = 10+cosd(t);
y = 10+sind(t);
plot(x,y);
How do I align the x and y axis to the centre of the plot similar to this attached image.
0 commentaires
Réponses (1)
Cameron
le 28 Avr 2023
t = 0:5:360;
x = cosd(t);
y = sind(t);
p = plot(x,y);
p.Parent.XAxisLocation = "origin";
p.Parent.YAxisLocation ="origin";
1 commentaire
Voir également
Catégories
En savoir plus sur Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!