将功能转换为Simulink块 [英] Convert function to Simulink block

查看:130
本文介绍了将功能转换为Simulink块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有一个视频 显示一些选项。基本上,使用 MATLAB函数块。或者,如果你想保持代码分离(并且不关心代码生成),你可以使用 MATLAB解释函数块。


How do I convert from a function, that I have written as an m-file, into a block in a Simulink model?

解决方案

There's a video here that shows some options. Basically, use the MATLAB Function block. Or, if you want to keep the code separate (and don't care about code generation), you can use the MATLAB Interpreted Function block.

这篇关于将功能转换为Simulink块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆