当前位置:文档之家› matlab常见错误命令汇总

matlab常见错误命令汇总

>> a=【0 1 2 3 4 5 6 7 8 9】

??? a=【0 1 2 3 4 5 6 7 8 9】

Error: The input character is not valid in MATLAB statements or expressions.

error ['er?]n. 错误,过失

input ['input]n. 输入

character ['k?rikt?]n. 个性,字符,人物

valid ['v?lid]a。有确实根据的,有效的,正当的

statement ['steitm?nt]n. 声明,陈述

expression [iks'pre??n]n. 表达,表示,表现,表情,措辞,词句

expressions n.表示式,公式



>> x=-5:5;y=-5:5;z=x^2+y^2;polt(x,y,z)

Error using ==> mpower

Matrix must be square.

matrix ['meitriks]n. 母体,子宫,细胞,脉石,字母 n.矩阵

square [skw??]n. 正方形,街区,平方a. 正方形的,正直的,公正的v. 一致,符合,使...成方形

>> x=-5:5;y=-5:5;z=x.^2+y.^2;polt(x,y,z)

Undefined function or method 'polt' for input arguments of type 'double'.

undefined ['?ndi'faind]未定义的

function ['f??k??n]n. 功能,函数,重大聚会vi. 运行,起作用

method ['meθ?d]n. 方法,办法

argument ['ɑ:gjum?nt]n. 辩论,争论,论据,理由

arguments n. 参数

type [taip]n. 类型,品种,样式,模范v. 打字n. 铅字,字体

double ['d?bl]n. 两倍a. 两倍的,双重的v. 加倍的,快步走,加倍努力



>> function output=mysum(n)

??? function output=mysum(n)

Error: Function definitions are not permitted at the prompt or inscripts.

definition [,defi'ni??n]n. 定义,清晰度

permit [p?(:)'mit]n. 许可证,执照v. 允许,许可

prompt [pr?mpt]n. 提示a. 迅速的,敏捷的,立刻的vt. 激起,促进,推动

inscription [in'skrip??n] n. 题字,碑铭



>> e——sin函数

??? e——sin函数

Error: The input character is not valid in MATLAB statements or expressions.

在MATLAB声明或表达式中,输入的这个字符时无效的。

Undefined function or method 'e' for input arguments of type 'char'.

输入的“char”类型的参数“e”没有定义功能、函数或方法。

Input argument "n" is undefined.

输入的参数“n”无定义。

Error: File: yx.m Line: 2 Column: 1

At least one END is missing: the statement may begin here.

最后的END被漏掉了:该声明可能重此处开始。

file [fail] n. 档案,公文箱,锉刀v. 列队行进,归档,申请 [计算机] 文件

line [lain] n. 行,线,航线v. 排成一行,顺...排列,划线于

column ['k?l?m]n. 柱,圆柱;柱形物,专栏 [计算机] 列

missing ['misi?]a. 缺掉的,失踪的

May [mei, me]n. 五月 aux.可能,可以,祝愿

begin [bi'gin]开始

Unexpected MATLAB expression.

unexpected ['?niks'pektid] a. 想不到的,意外的

expression [iks'pre??n] n. 表达,表示,表现,表情,措辞,词句



??? Error using ==> plot

Error in color/linetype argument



Error in ==> axis at 94

LocSetLimits(ax(j),cur_arg);



Error in ==> hepingtitle at 2

axis([0,6,3,-1.1,1.1]);



??? Error using

==> text

Value must be a string



Error in ==> hepingtitle at 10

text(pi/5,cos(pi/5),'(pi/5,cos(pi/5)','fontname',16);

??? Error using ==> axis>LocSetLimits at 234

Vector must have 4, 6, or 8 elements.



Error in ==> hepingsubplot at 4

subplot(2,2,[3 4]),axis(plot(x,tan(x))),title('tan')

??? Error using ==> axis>LocSetLimits at 234

Vector must have 4, 6, or 8 elements.

>> edit hepingfplot

??? Error: File: hepingfplot.m Line: 1 Column: 31

Unbalanced or unexpected parenthesis or bracket.



Warning: An error occurred while reading the desktop configuration file.

Using the default configuration.





>> [q,r]=deconv(p1,p2)

??? Error using ==> deconv at 21

First coefficient of A must be non-zero.



> In example1 at 2

??? Undefined function or method 'ln' for input arguments of type 'double'.



Error in ==> example1 at 2

z=((x+y)*ln(1+y/x))/((1-x-y).^(1/2));



Warning: Matrix is singular to working precision.

> In example1 at 2

??? Error using ==> surf at 70

X, Y, Z, and C cannot be complex.



Error in ==> example1 at 3

surf(x,y,z)





??? Undefined function or variable 'xy'.



Error in ==> example2 at 2

z=sin(xy)/(x*y);



??? Undefined function or variable 'xy'.



Error in ==> example2 at 2

z=sin(xy)/(x*y);



Warning: Matrix is singular to working precision.

> In example2 at 2

Warning: Matrix is close to singular or badly scaled.

Results may be inaccurate. RCOND = 5.551115e-017.

> In example2 at 2

>>



>> notebook setup

Welcome to the utility for setting up the MATLAB Notebook for interfacing MATLAB to Microsoft Word

utility [ju:'tiliti] n. 公共设施,效用,公用程序,实用品,实用

setting ['seti?] n. 安装,放置,周围,环境

notebook ['n??tb?k] n. 笔记本

interfacing ['int?feisi?] 界面连接, 接口连接, 连接衬布, 衬头



Setup complete

连接完成

Warning: MATLAB is now an automation server

警告:MATLAB现在不能自动服务。

warning ['w?:ni?]n. 警告,预告,通知vbl. 警告,注意,通知



Error in ==> hepingmovie at 4

在“hepingmovie”文件的第四行有错误。

y=1-1./sprt(1-k^2)*exp(-k*x).*sin(sprt(1-k^2)*x+a*cos(k));



>> int(x^x,a,b)

Warning: Explicit integral could not be found .

explicit [iks'plisit]a. 明确的,详述的,明晰的,外在的

integral ['intigr?l]a. 构成整体所必需的,完整的n. [数学] 积分, 完整, 部分

found [faund] v. 建立,创立, 创办vbl. (find的过去分词)找到

明确的积分表达式不能建立。





>> notebook -steup

Warning: MATLAB is now an automation server

>> notebook -setup



Welcome to the utility for setting up the MATLAB Notebook

for interfacing MATLAB to Microsoft Word



Setup complete

相关主题
文本预览
相关文档 最新文档