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 s

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值