This preview shows page 1. Sign up to view the full content.
Unformatted text preview: − ) with equal precedence, left to right When operators in an expression have the same precedence the operations are carried out from left to right. Thus 3 / 4 * 5 is evaluated as ( 3 / 4 ) * 5 and not as 3 / ( 4 * 5 ) . 2.2.3 Variables and Assignment Statements Variable names can be assigned to represent numerical values in Matlab . The rules for these variable names are: • Must start with a letter • May consist only of the letters az , digits9 , and the underscore character ( _ ) • May be as long as you would like, but Matlab only recognizes the Frst 31 characters • Is case sensitive: items, Items, itEms, and ITEMS are all di±erent variable names. Assignment statement: Matlab command of the form: • variable = number • variable = expression 18...
View
Full
Document
This note was uploaded on 03/07/2010 for the course ENG 101 taught by Professor Chang during the Summer '09 term at 東京国際大学.
 Summer '09
 CHANG
 English

Click to edit the document details