您好!
我正在尝试分析捕获的 ADC 数据、以便最好地确定 Matlab 中的波瓣与峰值之比。 如何按照 SLAA889的第2.2.1.1节的说明在 Matlab 中实现抛物线插值? 我从使用"热线"方法的 interp1 ()开始、但我怀疑这与固件的实际功能有很大不同。
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
我正在尝试分析捕获的 ADC 数据、以便最好地确定 Matlab 中的波瓣与峰值之比。 如何按照 SLAA889的第2.2.1.1节的说明在 Matlab 中实现抛物线插值? 我从使用"热线"方法的 interp1 ()开始、但我怀疑这与固件的实际功能有很大不同。
谢谢!
您好、Boone、
我想您可以在 Matlab 论坛上参考一些有关如何执行此操作的主题:
https://www.mathworks.com/matlabcentral/answers/488351-how-to-make-a-parabolic-interpolation
BR、
Leo
您好、Leonardo、
感谢您的建议。 实际上、我使用的是 Octave、而不是 MATLAB、它基本上是相同的、但不支持 cftool。 我能够将多项式配合二阶多项式使用。 我认为这与抛物线插值是一样的、但如果我错了、请告诉我。
下面是我如何找到插值峰值的 X 和 Y 坐标的片段:
PolyCoef = polyfit ([-1 0 1]、[rawADCData (sample_index-1) rawADCData (sample_index) postADCData (sample_index+1)]、2);
r =根(聚 DER (聚线性));
lobey = PolyCoef(1)* r^2 + PolyCoef(2)* r + PolyCoef(3);
lofeX = sample_index+r;