Effacer les filtres
Effacer les filtres

how to decrease the x-axis from left to right

14 vues (au cours des 30 derniers jours)
CHANDRABHAN Singh
CHANDRABHAN Singh le 27 Sep 2021
Commenté : Walter Roberson le 27 Sep 2021
plot option increses the axis from left to right. How can we reverse this (decrese the x-axis from left to right), something like shown in figure.
The code is attached herewith.
fc=-20*.145;
ft = -0.1*fc;
l = 0.52;
m = -( 3*(fc*fc-ft*ft)/(fc*ft))*(l/(l+1));
zita = fliplr(-50:1:5).*0.145;
theta = 0*(pi/180);
c = cos(theta);
p = 4*(1-l^2)*(c^2) + (2*l - 1)^2;
q = 2*(1-l*l)*c + (2*l-1)*sqrt(4*(1-l*l)*(c^2) + 5 *l*l - 4*l);
r =(p/q);
a = 1.5/(fc*fc);
b = m*r/((sqrt(6))*fc);
c = (m.*zita./(sqrt(3)*fc))-1;
rho = (-2*b + sqrt(b*b - 4*a.*c))./(4*a);
plot(-zita,rho);
grid on;

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Sep 2021
set(gca, 'XDir', 'reverse')
  2 commentaires
CHANDRABHAN Singh
CHANDRABHAN Singh le 27 Sep 2021
Please share the link to this topic, so that i can explore this.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Tags

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by