resample.m

来自「Matsig is an object-oriented signal clas」· M 代码 · 共 17 行

M
17
字号
function y = resample(x,fs)% Y = RESAMPLE(X,FS)  Change the sampling rate of a signal.%% This differs from the original resample in that only one% argument, which is the new sampling rate of a signal, is given.% $Id: resample.m 103 2006-02-07 10:24:32Z bassus $oldfs = x.time.fs;if fs<1  oldfs = oldfs/fs;  fs=1;endy_ = resample(x.s,fs,oldfs);y = signal(y_,time(x.time.begin,length(y_),fs));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?