image thumbnail

save_to_base.m

version 1.2.0.0 (1.51 KB) by Phillip M. Feldman
copies variables from the workspace of the calling function to the base workspace

4.4K Downloads

Updated 18 Aug 2009

View License

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.

Cite As

Phillip M. Feldman (2021). save_to_base.m (https://www.mathworks.com/matlabcentral/fileexchange/24121-save_to_base-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!