save_to_base.m

copies variables from the workspace of the calling function to the base workspace
4,4K descargas
Actualizado 18 ago 2009

Ver licencia

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.

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2009a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Workspace Variables and MAT-Files en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.2.0.0

Added patch to exclude 'ans' variable.

1.1.0.0

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.

1.0.0.0