save_to_base.m
by Phillip M. Feldman
14 May 2009
(Updated 18 Aug 2009)
copies variables from the workspace of the calling function to the base workspace
|
Watch this File
|
| File Information |
| Description |
save_to_base() copies variables in the workspace of the calling function to the base workspace. This makes it possible to examine a function's internal variables from the Matlab command prompt after the calling function terminates.
If the optional argument "overwrite" is present and has a non-zero value, variables in the workspace of the caller will overwrite variables in the base workspace having the same name. Otherwise, preexisting variables in the base workspace will not be overwritten. |
| MATLAB release |
MATLAB 7.8 (R2009a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 02 Jun 2009 |
This file replaces save_variables, and fixes two problems:
- It is no longer necessary to nest the function.
- A calling argument has been added to control whether preexisting variables in the base workspace are overwritten. |
| 18 Aug 2009 |
Added patch to exclude 'ans' variable. |
|
Contact us at files@mathworks.com