Interpolate from slower sample rate to faster sample rate in Simulink?

조회 수: 3 (최근 30일)
Thomas Marullo
Thomas Marullo 2012년 7월 26일
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
Ryan G 2012년 7월 26일
Will you have access to all of the source data at the start of running the controller?
Thomas Marullo
Thomas Marullo 2012년 7월 27일
Yes, I have complete access.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kaustubha Govind
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.
  댓글 수: 1
Thomas Marullo
Thomas Marullo 2012년 7월 26일
This has potential to work, but forgive my lack of knowledge on FIRs. How would I make the interpolation linear with this block?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Prediction에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by