Unformatted text preview: (the default) turns o± command display and echo by itself toggles the command echo state. You could repeatedly edit qroots.m , change the values of a, b, and c, save the Fle, then have Matlab execute the revised script to compute a new pair of roots. Matlab functions useful in M-Fles: Command Description disp(ans) Display results without identifying variable names echo [on|off] Control Command window echoing of script commands input(’prompt’) Prompt user with text in quotes, accept input until “Enter” is typed keyboard Give control to keyboard temporarily. Type Return to return control to the executing script M-Fle. pause Pause until user presses any keyboard key pause(n) Pause for n seconds waitforbuttonpress Pause until user presses mouse button or keyboard key 44...
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