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 件のコメント

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2014 年 2 月 28 日
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.
MICHELE
MICHELE 2014 年 3 月 3 日
Here you find the two pictures. Hope it helps
Thank you
A Jenkins
A Jenkins 2014 年 3 月 3 日
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.
MICHELE
MICHELE 2014 年 3 月 3 日
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) >>
MICHELE
MICHELE 2014 年 3 月 3 日
This is what I got. I am using a University version at my desk for research....
A Jenkins
A Jenkins 2014 年 3 月 3 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

質問済み:

2014 年 2 月 28 日

コメント済み:

2014 年 3 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by