how to mirror plot "around zero" on x axis

I mean if I have frequency axis or time axis [x - axis] = from 0 to 50 for example,
how to plot same axis byt reserved in negative >>>> from -50 to o ?!

 Respuesta aceptada

Voss
Voss el 7 de Mayo de 2022
t = 0:0.1:50;
y = sin(2*pi*t/10)+0.005*t.*randn(1,numel(t)); % some random signal
plot(t,y) % original signal
hold on
plot(-t,y) % "mirrored" signal

2 comentarios

Belal Ahmed
Belal Ahmed el 7 de Mayo de 2022
it works !
thank you so much
Voss
Voss el 7 de Mayo de 2022
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 7 de Mayo de 2022

Comentada:

el 7 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