重新采样信号以从信号中获取N个点数

问题描述 投票:0回答:1

我有一个信号,我想从中得到等距的点,我当时正在考虑使用resample作为执行此操作的方法,但我不确定要使用的正确值。

示例:

我有一个采样为8000 Hz的正弦波信号,但我想从信号中仅获得4个等距点。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

我有一个信号,我想从中得到n个等距的点,我当时正在考虑使用重采样作为一种方法,但是我不确定要使用的正确值。例如:我有一个正弦...
signal-processing octave resampling
1个回答
1
投票
y = resample (x, p, q, h)
© www.soinside.com 2019 - 2024. All rights reserved.