Interpolate from slower sample rate to faster sample rate in Simulink?
9 次查看(过去 30 天)
显示 更早的评论
I have a source that runs at 0.1 seconds and my controller needs to run at 0.01 seconds. I want to interpolate the source into the faster rate without delay. For instance, Source in 0.1 0, 10, 20
Resulting Controller Source in 0.01 0 0 0 0 0 0 0 0 0 0, 1 2 3 4 5 6 7 8 9 10, 11 12 13 14 15 16 17 18 19 20,
Is there anything that does this in Simulink? The input sample rate is slower than the output sample rate and the output is a linear interpolation.
2 个评论
Ryan G
2012-7-26
Will you have access to all of the source data at the start of running the controller?
回答(1 个)
Kaustubha Govind
2012-7-26
The FIR Interpolation block from the DSP System Toolbox might be what you need, but you will need to adjust the filter coefficients and Interpolation factor to get what you need. Typically the Rate Transition block is used for rate conversion in Simulink, but it does not perform interpolation.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Prediction 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!