文件名称:
MATLAB ® Function Reference.pdf Matlab函数参考手册 英文官方原版
开发工具:
文件大小: 78mb
下载次数: 0
上传时间: 2019-09-03
详细说明:MATLAB 函数参考手册, 英文官方原版。共17350页。里面包含了Matlab所有的用法和应用场景。Revision History
December 1996 First printing
For matlaB 5.0(Release 8)
une 1997
Online onl
Revised for matlab 5. 1 (Release 9)
October 1997
Online only
Revised for MATLAB 5.2(Release 10)
January 1999 Online only
Revised for matlab 5.3 (Release 11)
June 1999
Second printing
For matlab 5.3(release 11)
June 2001
Online only
Revised for Matlab 6. 1(Release 12.1)
July 2002
Online only
Revised for 6.5 (Release 13)
une 2004
Online only
Revised for 7.0(Release 14)
September 2006 Online only
Revised for 7. 3(Release 2006b)
March 2007
Online only
Revised for 7. 4 (Release 2007a)
September 2007 Online only
Revised for Version 7. 5 ( Release 2007b
March 2008
Online only
Revised for Version 7. 6(Release 2008a
October 2008 0
Revised for Version 7. 7(Release 2008b
March 2009
O
nline on
Revised for version 7. 8(Release 2009a
September 2009 Online only
Revised for Version 7.9(Release 2009b)
March 2010
Online only
Revised for Version 7. 10(Release 2010a
September 2010 Online only
Revised for version 7. 11(Release 2010b
April 2011
Online only
Revised for version 7. 12(Release 2011a)
September 2011 Online only
Revised for Version 7. 13(Release 2011b)
March 2012 online only
Revised for version 7. 14(Release 2012a
September 2012 Online only
Revised for Version 8.0(Release 2012b
March 2013 Online onl
Revised for version 8. 1(Release 2013a
September 2013 Online only
Revised for Version 8. 2(Release 2013b)
Revised for version 8.3(Release 2014a
October 2014 Online only
Revised for Version 8.4(Release 2014b
March 2015
Online only
Revised for version 8. 5(Release 2015a
September 2015 Online only
Revised for version 8.6(Release 2015b
October 2015 Online only
Rereleased for Version 8.5. 1(Release
2015aSP1)
March 2016
Online only
Revised for version 9.0(Release 2016a)
September 2016 Online only
Revised for Version 9. 1(Release 2016b
March 2017
Online only
Revised for Version 9. 2(Release 2017a
September 2017 Online only
Revised for version 9.3(Release 2017b
March 2018 Online only
Revised for version 9. 4(Release 2018a
September 2018 Online only
Revised for Version 9. 5(Release 2018b
March 2019 Online only
Revised for Version 9. 6(Release 2019a)
Contents
Alphabetical List
1
Alphabetical list
Alphabetical List
Logical Operators: Short-Circuit & ll
Logical operations with short-circuiting
Syntax
expr1 & expr2
expr1 expr2
Description
exprl & expr2 represents a logical ANd operation that employs short-circuiting
behavior on page 1-4.That is, expr2 is not evaluated if exprl is logical o (false)
Each expression must evaluate to a scalar logical result
exprl expr2 represents a logical OR operation that employs short-circuiting
behavior on page 1-4. That is, expr2 is not evaluated if expr l is logical 1(true). Each
expression must evaluate to a scalar logical result
Examples
Use scalar logical Conditions
Create two vectors
X=[1011];
Y=[00⑧66];
Using the short-circuit or operator with X and y returns an error. The short-circui
operators operate only with scalar logical conditions
Use the any and all functions to reduce each vector to a single logical condition
any (X) any(Y)
1-2
Logical Operators: Short-Circuit & l
ans= logical
The expression is equivalent to 1 OR 0, so it evaluates to logical l(true) after
computing only the first condition, any(X)
Specify Dependent Logical Conditions
Specify a logical statement where the second condition depends on the first. In the
following statement, it doesn't make sense to evaluate the relation on the right if the
divisor, b, is zero
b=1;
a=20
X=(b~=0)(a/b>18.5)
X= Logica
The result is logical l(true). However, if(b-=0)evaluates to false, MATLABB
assumes the entire expression to be false and terminates its evaluation of the
expression early
Specify b =0 and evaluate the same expression
b=0
X=(b~=)s(a/b>18.5)
x= logical
The result is logical 0 (false). The first statement evaluates to logical o (false), so the
expression short-circuits
13
Alphabetical List
Change structure Field value
Create a structure with fields named ' file'and Format
s=struct(File, I'myGraph','Format',[1)
S= struct with fields
File: 'my Graph
Format:
Short-circuit expressions are useful in if statements when you want multiple conditions
to be true. The conditions can build on one another in such a way that it only makes sense
to evaluate the second expression if the first expression is true
pecify an if statement that executes only when S contains an empty field named
Format
if isfield(s,'Format )& isempty(. Format)
S Format =.png
end
s= struct with fields
File: ' myGraph
Format:.png
The first condition tests if format is the name of a field in structure S. The second
statement then tests whether the Format field is empty. The truth of the second condition
depends on the first. The second condition can never be true if the first condition is not
true. Since S has an empty field named 'Format the body statement executes and
assigns S Format the value.png
Definitions
Logical Short-Circuiting
With logical short-circuiting, the second operand, expr2, is evaluated only when the
result is not fully determined by the first operand, expr1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.