shifting plot of signal from right to left

86 次查看(过去 30 天)
Hi
I want to shift the peak of the plot that I have shown below to zoro. I would appreciate if any one could help.
Many thanks

回答(1 个)

Lukas Bystricky
Lukas Bystricky 2015-7-28
编辑:Lukas Bystricky 2015-7-28
Assuming you're plotting x vs. t, instead of
plot(t,x)
try
plot(t - 8, x)
(or something close to 8) to shift your t-axis.

Community Treasure Hunt

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

Start Hunting!

Translated by