首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

matlab bug搜集

2013-01-02 
matlab bug收集SummaryRedirecting a MATLAB file into matlab -nodisplay can cause Type-ahead Buffer

matlab bug收集
Summary

Redirecting a MATLAB file into matlab -nodisplay can cause "Type-ahead Buffer Overflow" errors

Description

One way to have MATLAB execute a MATLAB file on a UNIX system is to redirect that file into MATLAB with the command

matlab -nodisplay < myMfile.m

at the shell prompt.

Depending on the contents of myMfile.m, it is possible that you will see "Type-ahead Buffer Overflow" error messages in the standard output stream from MATLAB. For example, a call to the Distributed Computing Toolbox function waitForState can trigger this behavior.

Workaround

If you start MATLAB with the -r flag, which also executes the specified MATLAB file, rather than use input redirection, you should not see this behavior. For example,

matlab -nodisplay -r myMfile
Fix

This bug was fixed as of R2009a(7.8).

热点排行