Chapter 8: MuPAD Programming I Conditional Control and Loops MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Post on 18-Jan-2016
Embed Size (px)
Embedded Communications in Wireless Sensor Network
Chapter 8:MuPAD Programming IConditional Control and LoopsMATLAB for Scientist and EngineersUsing Symbolic Toolbox
You are going toSee that MuPAD provides flow control mechanism, such as if and loopsGet to know how to use if and case statementsUse for, while, repeat statements to iterate various loops2type and testtypeUseful for checking some conditions3
Cf. domtype()For all available TypesDetails:If object is not an expression of domain type DOM_EXPR, then type(object) is equivalent to domtype(object), i.e., type returns the domain type of the object.If object is an expression of domain type DOM_EXPR, then its type is determined by its 0-th operand (the operator). If the operator has a "type" slot, then type returns this value, which usually is a string. If the operator has no "type" slot, then type returns the string "function".In contrast to most other functions, type does not flatten arguments that are expression sequences. Cf. example4.3IF statementif condition4
if condition else