查看文章
 
关于warning的问题,原来是matlab的bug
2006年11月20日 星期一 18:33

  搜到了这篇文章:

Why do I receive a set_param Warning or Error when Using MATLAB Compiler 4.0?
Date Last Modified: 11 Dec 2004
Product: MATLAB® Compiler
Reported in Release: R14
Fixed in Release: R14SP1
Platform: All Platforms
Operating System: All OS

Subject:

Why do I receive a set_param Warning or Error when Using MATLAB Compiler 4.0?

Problem Description:

I am using the MATLAB Compiler and receive the following error:


(where $MATLAB = the MATLAB root directory on my machine)

Why is this?

Warning: No matching builtin function available for $MATLAB/toolbox/simulink/simulink/set_param.bi

Solution:

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:

This has been verified as a bug in the MATLAB Compiler 4.0 (R14).

In certain cases you may get a warning/error message regarding SET_PARAM not being found when using MATLAB Compiler 4.0 (R14). SET_PARAM is a SIMULINK function that is not supported by MATLAB Compiler.

To resolve this issue, you should modify the following file:

$MATLAB/toolbox/compiler/deploy/matlabrc.m


(where $MATLAB = the MATLAB root directory on your machine)

Comment out the following lines (numbers 81 and 82) that have a call to SET_PARAM.


set_param(0,'PaperType',defaultpaper);
set_param(0,'PaperUnits',defaultunits);

When you are finished, save these changes and issue the following command at the MATLAB command prompt:

rehash toolboxcache


类别:matlab/octave||添加到搜藏 |分享到i贴吧|浏览(671)|评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu