How to use a matlab code in simulink block?

185 次查看(过去 30 天)
I am a beginner in simulink. I have my code written in matlab which is to be interface wih the simulink code. How do I use the same matlab code to use with simulink block? Please explain.

回答(3 个)

Ilham Hardy
Ilham Hardy 2013-1-24

Sachin Ganjare
Sachin Ganjare 2013-1-24
Use Matlab function block from simulink library.

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-27
编辑:Azzi Abdelmalek 2013-1-27
You can use Interpreted MATLAB Function. When you need to generate a C/C++ code, use a Matlab function like suggested by Ilham.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by