This preview shows page 1. Sign up to view the full content.
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
- Summer '09