文档帮助中心
本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
Simulink 允许您实现在 MATLAB、C/C++ 和 Fortran 中设计的算法。因此,您可以在 Simulink 中构建更高级模型时保留您的代码的现有功能。
此示例说明如何将扩展 Kalman 滤波器与 Simulink® 中的 MATLAB® Function 模块结合使用,以根据雷达测量值估计飞机的位置。滤波器实现在 MATLAB Function 模块中进行,其内容存储在 Simulink 模型本身中。
This library launches examples of different types of Simulink® S-functions. Simulink S-functions allow you to extend Simulink with new hand coded blocks, interface to custom external code, and create live interfaces to other programs. Models containing S-functions in the following programming languages can be accessed through this demonstration: C, C++, M and Fortran.
Use the MATLAB System block to implement Simulink® blocks using a System object™. It highlights two MATLAB System blocks. Access the MATLAB source code for each System object by clicking the "Source Code" hyperlink from the block dialog.
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office