필터 지우기
필터 지우기

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