How to convert Fixed-in-Minor-Step to Continuous in Simulink?

조회 수: 13 (최근 30일)
Jonathan
Jonathan 2014년 8월 5일
답변: Archit Dhanani 2019년 7월 19일
Hi
How do I convert a Fixed-in-Minor-Step sample time signal to a Continuous sample time signal without changing solvers?
  댓글 수: 1
dzid_
dzid_ 2019년 6월 11일
Yeah, how? What is the trick?
I have multiplied the FiM signal by a Continuous signal (equal=1) and it made it it continuous but that's dirty solution

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

답변 (1개)

Archit Dhanani
Archit Dhanani 2019년 7월 19일
There is a shipped SFunction 'sfun_d2c' which you could try using. It provides algorithms that essentially performs a linear extrapolation on the sampled data.
You can find an example using this S-Function at the following location in the MATLAB installation:
matlab\toolbox\simulink\simdemos\simfeatures\sfcndemo_d2c
You can use the command:
>>cd(matlabroot);
>>cd toolbox\simulink\simdemos\simfeatures
>>sfundemo_d2c
See if this helps avoiding the issue.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by