calling a standalone function to matlab function block
1 次查看(过去 30 天)
显示 更早的评论
hi....I wonder if anyone has an idea about how to call a standalone function (like filter function or any function else which is in fact a subroutine)to matlab function block because my research needs such process....and whether matlab supports that or not? please help...thanks in advance.
0 个评论
采纳的回答
Kaustubha Govind
2012-1-27
You can use any of functions supported for code-generation inside a MATLAB Function block. However, if you do not plan to generate embedded C/C++ code from your Simulink model, you can declare unsupported functions using coder.extrinsic and use them in the block.
5 个评论
Kaustubha Govind
2012-1-31
There might be downstream blocks that are specifying a continuous sample time - Simulink back-propagates that to the MATLAB Function block. I can't think of a way that you can use to directly specify the sample-time of the block.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with DSP System Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!