This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Matlab workspace or Base workspace. The workspace retains the values of these variables, allowing them to be used in subsequent expressions. Thus, for the example above, we are able to compute the average cost per item by the following: >> average_cost = cost/items average_cost = 0.1142 Because average cost is two words and Matlab variable names must be one word, an underscore was used to create the single Matlab variable average_cost . If an expression contains variables, the value of the expression can be computed only if the values of the variables have been previously computed and still reside in the workspace. To compute the value of y = x + 5, you must Frst supply a value of x : 19...
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