how to mirror plot "around zero" on x axis

19 ビュー (過去 30 日間)
Belal Ahmed
Belal Ahmed 2022 年 5 月 7 日
コメント済み: Voss 2022 年 5 月 7 日
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 ?!

採用された回答

Voss
Voss 2022 年 5 月 7 日
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 件のコメント
Belal Ahmed
Belal Ahmed 2022 年 5 月 7 日
it works !
thank you so much
Voss
Voss 2022 年 5 月 7 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by