MATLAB+中的常用操作符教程.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MATLAB 中的常用操作符 其实这些是MATLAB 帮助文件中的内容,可以利用help 命令知道的。 Arithmetic operators. plus Plus + uplus Unary plus + minus Minus uminus Unary minus mtimes Matrix multiply * times Array multiply .* mpower Matrix power ^ power Array power .^ mldivide Backslash or left matrix divide \ mrdivide Slash or right matrix divide / ldivide Left array divide .\ rdivide Right array divide ./ kron Kronecker tensor product kron Relational operators. eq Equal == ne Not equal ~= lt Less than gt Greater than le Less than or equal = ge Greater than or equal = Logical operators. Short circuit logical AND Short circuit logical OR || and Element wise logical AND or Element wise logical OR | not Logical NOT ~ xor Logical EXCLUSIVE OR any True if any element of vector is nonzero all True if all elements of vector are nonzero Special characters. colon Colon : paren Parentheses and subscripting ( ) paren Brackets [ ] paren Braces and subscripting { } punct Function handle creation @ punct Decimal point . punct Structure field access . punct Parent directory .. punct Continuation ... punct Separator , punct Semicolon ; punct Comment % punct Invoke operating system command ! punct Assignment = punct Quote transpose Transpose . ctranspose Complex conjugate transpose horzcat Horizontal concatenation [,] vertcat Vertical concatenation [;] subsasgn Subscripted assignment ( ),{ },. subsref Subscripted reference ( ),{ },. subsindex Subscript index Bitwise operators. bitand Bit wise AND. bitcmp Complement bits. bitor Bit wise OR. bitmax Maximum floati ng point integer. bitxor Bit wise XOR. bitset Set bit. bitget Get bit. bitshift Bit wise shift. Set operators. union Set union. unique Set unique. intersect Set intersection. setdiff Set difference. setxor Set exclusive or. ismember True for set member MATLAB 程式设计与应用 1-1、基本运算与函数 在MATLAB 下进行基本数学运算,只需将运算式直接打入提示号()之後,并按入Enter 键即可。例如: (5*2+1.3-0.8)*10/25 ans = 4.2000 MATLAB 会将运算结果直

文档评论(0)

yy556911 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档