資源簡介
matlab 對于一個樣值序列間隔幾個樣值取樣一次,這樣得到新序列就是原序列的下采樣
代碼片段和文件信息
%Setting?up?exponential?signal?vector?to?be?down?sampled
?
clc;
clear?all;
%?example
%?Enter?length?of?the?output?sequence:45
%?Enter?down?sampling?factor:3
%?Enter?the?value?of?base?of?exponent?function:0.95
N=input(‘Enter?length?of?the?output?sequence:‘);
M=input(‘Enter?down?sampling?factor:‘);
a=input(‘Enter?the?value?of?base?of?exponent?function:‘);
n=0:N-1;
m=0:N*M-1;
x=a.^m;
%?Generate?the?downsampled?signal?下采樣?
y=x([1:M:lengt
- 上一篇:SPWM仿真.rar
- 下一篇:DCT變換交互式原理與應用 matlab
評論
共有 條評論