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

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 ==> mpowerMatrix 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: 1At 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 ==> plotError in color/linetype argumentError in ==> axis at 94LocSetLimits(ax(j),cur_arg);Error in ==> hepingtitle at 2axis([0,6,3,-1.1,1.1]);??? Error using ==> textValue must be a stringError in ==> hepingtitle at 10text(pi/5,cos(pi/5),'(pi/5,cos(pi/5)','fontname',16);??? Error using ==> axis>LocSetLimits at 234Vector must have 4, 6, or 8 elements.Error in ==> hepingsubplot at 4subplot(2,2,[3 4]),axis(plot(x,tan(x))),title('tan')??? Error using ==> axis>LocSetLimits at 234Vector must have 4, 6, or 8 elements.>> edit hepingfplot??? Error: file: hepingfplot.m Line: 1 Column: 31Unbalanced 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 21First 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 2z=((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 70X, Y, Z, and C cannot be complex.Error in ==> example1 at 3surf(x,y,z)??? Undefined function or variable 'xy'.Error in ==> example2 at 2z=sin(xy)/(x*y);??? Undefined function or variable 'xy'.Error in ==> example2 at 2z=sin(xy)/(x*y);Warning: Matrix is singular to working precision.> In example2 at 2Warning: Matrix is close to singular or badly scaled.Results may be inaccurate. RCOND = 5.551115e-017.> In example2 at 2>> notebook setupWelcome to the utility for setting up the MATLAB Notebook for interfacing MATLAB to Microsoft Wordutility [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 -steupWarning: MATLAB is now an automation server>> notebook -setupWelcome to the utility for setting up the MATLAB Notebookfor interfacing MATLAB to Microsoft WordSetup complete。

相关主题