Getting Started Previous page   Next Page

return

return terminates the current sequence of commands and returns control to the invoking function or to the keyboard. return is also used to terminate keyboard mode. A called function normally transfers control to the function that invoked it when it reaches the end of the function. You can insert a return statement within the called function to force an early termination and to transfer control to the invoking function.


Previous page  try - catch Other Data Structures Next page

© 1994-2005 The MathWorks, Inc.