我有一个信号,我想从中得到等距的点,我当时正在考虑使用 示例:resample
作为执行此操作的方法,但我不确定要使用的正确值。fs=8000
len_of_sig=1.0; %length of signal in seconds
t=linspace(0,len_of_sig,fs*len_of_sig);
y=1*sin(1*(2*pi)*t);
spaced_points=resample(y,) (not sure how to calculate the correct values to use to get just 4,5,6... equally spaced points)
我不确定如何计算正确的值来获得等距的点[[(例如4,5,6 ...点)]
有什么想法吗?我真的不需要使用resample
,我只是认为那将是最快的。 我在Ubuntu 64位上使用Octave 4.2.2
y = resample (x, p, q, h)