How to use your own code in simulink
Show older comments
i have a code and i want to add it to my simulink mode. How can i do it?
1 Comment
Hashem Burki
on 26 May 2011
Answers (4)
Walter Roberson
on 26 May 2011
1 vote
Kaustubha Govind
on 28 Nov 2011
1 vote
Arnaud Miege
on 26 May 2011
0 votes
Is this MATLAB code you're talking about? You can use the MATLAB Function block in R2011a (called Embedded MATLAB Function block in previous releases). Depending on what your code does, you may need to re-architecture it slightly to make it compliant with the function supported for code generation or to delcare some functions as extrinsic functions).
HTH,
Arnaud
ssq
on 28 Nov 2011
0 votes
use embedded matlab function block and if want to port it on fpga then use xilinx block sets and block name is M_code
Categories
Find more on Image Acquisition in Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!