How to embed a m-file in simulink?
3 views (last 30 days)
Show older comments
Hello,
i want to embed a m-File in simulink and usw a matlab function block for this. I once wanted to understand how the Matlab function block works, I built the example of Mathworks: http://de.mathworks.com/help/simuli.....nction-block.html#bruwcsp
An appropriate compiler I have already installed and stored with mex-setup in matlab (Visual Studio 2012 for Matlab 2013a). When the code compile (build model> Build) nevertheless it appears an error message:
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler".
Can someone help me?
greeting Sandro
3 Comments
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing 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!