How to convert Fixed-in-Minor-Step to Continuous in Simulink?
12 次查看(过去 30 天)
显示 更早的评论
Hi
How do I convert a Fixed-in-Minor-Step sample time signal to a Continuous sample time signal without changing solvers?
1 个评论
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!