Filter löschen
Filter löschen

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

29 Ansichten (letzte 30 Tage)
a matlab code to perform time scaling( expansion and compression ) on continuous and bounded signal?
  1 Kommentar
Daniel kiracofe
Daniel kiracofe am 13 Nov. 2016
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

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

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

Kategorien

Mehr zu Signal Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by