how to mirror plot "around zero" on x axis

6 visualizzazioni (ultimi 30 giorni)
Belal Ahmed
Belal Ahmed il 7 Mag 2022
Commentato: Voss il 7 Mag 2022
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 ?!

Risposta accettata

Voss
Voss il 7 Mag 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

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by