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 comentarios

Ankit
Ankit el 24 de Feb. de 2020
try this
plot(-x(:,1), y(:,2));
Ali nouri
Ali nouri el 24 de Feb. de 2020
but then x axis is negativ.

Iniciar sesión para comentar.

 Respuesta aceptada

Ankit
Ankit el 24 de Feb. de 2020
Editada: Ankit el 24 de Feb. de 2020

4 votos

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

5 comentarios

Ali nouri
Ali nouri el 24 de Feb. de 2020
thanks
Ankit
Ankit el 24 de Feb. de 2020
You can accept the answer if it served your purpose!
Leonardo Angeles Daza
Leonardo Angeles Daza el 11 de Oct. de 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?
jose daniel hoyos giraldo
jose daniel hoyos giraldo el 7 de Mayo de 2022
did you solve it?
DGM
DGM el 8 de Mayo de 2022
?
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:')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Feb. de 2020

Comentada:

DGM
el 8 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by