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
- Summer '09
- English, MATLAB variable names, Matlab variable average_cost, Matlab workspace