Problem using MATLAB fcn block using simulink. Simulink and mex errors.

I need to couple matlab code in simulink by the matlab fcn block. Unfortunately, even running very easy code, purely + and * operations, it generates errors for mex and simulink coder. Try to follow many of the tutorials and help files (as this one for instance, http://www.mathworks.com/matlabcentral/answers/30156-errors-related-to-simulink-containing-embedded-matlab-function), but it did not work.
Please, help me solving the problem.
Thanks a lot

6 comentarios

The error message is not visible in the screenshot. Could you post another one with the bottom pane of the front dialog scrolled to the bottom? Alternatively, you could call rtwbuild('call_stats_block2') which will then post the output to the bottom.
Here you find the two pictures. Hope it helps
Thank you
It says you don't have a license for Simulink Coder. You can type "ver" at the command line to see what licenses you have installed.
MATLAB Version: 8.0.0.783 (R2012b) MATLAB License Number: •••••• Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1) Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ Client VM mixed mode ------------------------------------------------------------------------------------------------ MATLAB Version 8.0 (R2012b) Simulink Version 8.0 (R2012b) Control System Toolbox Version 9.4 (R2012b) Curve Fitting Toolbox Version 3.3 (R2012b) Fuzzy Logic Toolbox Version 2.2.16 (R2012b) Global Optimization Toolbox Version 3.2.2 (R2012b) Image Processing Toolbox Version 8.1 (R2012b) Neural Network Toolbox Version 8.0 (R2012b) Optimization Toolbox Version 6.2.1 (R2012b) Signal Processing Toolbox Version 6.18 (R2012b) Simulink Control Design Version 3.6 (R2012b) Statistics Toolbox Version 8.1 (R2012b) Symbolic Math Toolbox Version 5.9 (R2012b) >>
This is what I got. I am using a University version at my desk for research....
If it is important for you to use Simulink Coder for your research, then you will need to contact your University to purchase you a license for it.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Feb. de 2014

Comentada:

el 3 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by