Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert function to Simulink block

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

like image 684
stanigator Avatar asked Feb 08 '10 22:02

stanigator


1 Answers

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.

like image 64
Edric Avatar answered Oct 21 '22 17:10

Edric