Hi
I need a help, i want to mirror a plotaround y axis, but still have the same axis, can anybody help?
I have upload the plot as attachments.

2 commentaires

Ankit
Ankit le 24 Fév 2020
try this
plot(-x(:,1), y(:,2));
Ali nouri
Ali nouri le 24 Fév 2020
but then x axis is negativ.

Connectez-vous pour commenter.

 Réponse acceptée

Ankit
Ankit le 24 Fév 2020
Modifié(e) : Ankit le 24 Fév 2020

4 votes

After your plot command, add the below line:
set(gca, 'XDir','reverse')

5 commentaires

Ali nouri
Ali nouri le 24 Fév 2020
thanks
Ankit
Ankit le 24 Fév 2020
You can accept the answer if it served your purpose!
Leonardo Angeles Daza
Leonardo Angeles Daza le 11 Oct 2020
How can i mirror a duplicate? I mean having the first curve and the mirrored one in the same plot, Can it be done with a fplot?
did you solve it?
?
x = -10:20;
y = x/10;
% the regular plot
plot(x,y,'k'); hold on
% the same series, but flipped on x
plot(-x,y,'b:')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by