This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: a. The following fprintf command: fprintf('First line of text. Second line of text. Third line of text.'); displays the following text in the Matlab command window: First line of text. Second line of text. Third line of text. The fprintf does not automatically start a new line, and it does not end with a new line. b. With fprintf command it is possible to start a new line in the middle of the text string. This is done by inserting \n before the character that will start the new line. The following fprintf command: fprintf('First line of text. \nSecond line of text. \nThird line of text.\n');...
View Full Document
This note was uploaded on 04/21/2010 for the course CHE 2160 taught by Professor Cygan during the Fall '09 term at LSU.
- Fall '09