This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Displaying Values and Text There are three ways to display values and text in Matlab , to be described in this section: 1. By entering the variable name at the Matlab prompt, without a semicolon. 2. By use of the command disp . 3. By use of the command fprintf . • From the prompt: As demonstrated in previous examples, by entering a variable name, an assignment statement, or an expression at the Matlab prompt, without a semicolon, the result will be displayed, proceeded by the variable name (or by ans if only an expression was entered). For example: 31...
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