文档库 最新最全的文档下载
当前位置:文档库 › 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.

输入的字符不是有效的,在申明或公式中没有被正确定义。



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

Error using ==> mpower

矩阵的次方应用出错,应该是点乘。



>> 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'.


未定义函数或函数输入的参数格式不对。
此处是函数写错了。



>> function output=mysum(n)

??? function output=mysum(n)

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

函数定义不能用(窗口命令的)快速方式
应该在M文件中定义。





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

??? Error using ==> deconv at 21

First coefficient of A must be non-zero.






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

Warning: Explicit integral could not be found .

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



>> 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被漏掉了:该声明可能重此处开始。

相关文档