Mirror plotting a curve

6 visualizaciones (últimos 30 días)
ErikJon Pérez Mardaras
ErikJon Pérez Mardaras el 2 de Nov. de 2020
Comentada: ErikJon Pérez Mardaras el 2 de Nov. de 2020
I would like to plot mirror the blue curve from the x=0 vertical axis
So to achieve something like that:
Is there any way of achieving that?

Respuestas (1)

John D'Errico
John D'Errico el 2 de Nov. de 2020
You must have plotted the curve using a call like
plot(x,y,'-b')
But then, what would the following do?
plot(-x,y,'-b')
  1 comentario
ErikJon Pérez Mardaras
ErikJon Pérez Mardaras el 2 de Nov. de 2020
thanks for your repply, but what I am looking for is for a general solution. What you said is a particular solution when you want to mirror plot relative to an X axis, but imagine the following.
Imagine for example I have this blue curve
And I want a mirror plot relative to the purple axis, to achieve this:
How could I achieve that?

Iniciar sesión para comentar.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by