MATLAB Answers

How to mirror a plot ?

282 views (last 30 days)
Ali nouri
Ali nouri on 24 Feb 2020
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 Comments
Ali nouri
Ali nouri on 24 Feb 2020
but then x axis is negativ.

Sign in to comment.

Accepted Answer

Ankit
Ankit on 24 Feb 2020
Edited: Ankit on 24 Feb 2020
After your plot command, add the below line:
set(gca, 'XDir','reverse')
  3 Comments
Leonardo Angeles Daza
Leonardo Angeles Daza on 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?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!