How to embed a m-file in simulink?

3 views (last 30 days)
Var87
Var87 on 10 Mar 2015
Commented: Var87 on 13 Mar 2015
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
Var87
Var87 on 11 Mar 2015
Hello Christian,
How do you mean exactly "Inputs and outputs can be used by modifying the first row" ?
greeting Sandro
Var87
Var87 on 13 Mar 2015
Hello,
i have solved this problem with an other matlab block. Now it works.

Sign in to comment.

Answers (0)

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!