how to perform time scaling( expansion and compression ) on continuous and bounded signal?

29 次查看(过去 30 天)
a matlab code to perform time scaling( expansion and compression ) on continuous and bounded signal?
  1 个评论
Daniel kiracofe
Daniel kiracofe 2016-11-13
well to give a proper answer, we need more information about what you are trying to do. But in the general sense, a signal in matlab is usually just a representated vector, and the time information is usually a separate vector. e.g.
t=0:0.001:10;
signal = sin( 10 * 2 * pi * t);
plot(t, signal);
So to do scaling on the time, you don't have to touch the signal vector, just scale the time vector. e.g. tscale=t*2, or tscale=t/2 or whatever you want.

请先登录,再进行评论。

回答(2 个)

Ragul
Ragul 2024-2-20
t=0:0.001:10;
signal = sin( 10 * 2 * pi * t);
plot(t, signal);

Ragul
Ragul 2024-2-20
t=0:0.001:10;
signal = sin( 10 * 2 * pi * t);
plot(t, signal);

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by