save_to_base.m

버전 1.2.0.0 (1.51 KB) 작성자: Phillip M. Feldman
copies variables from the workspace of the calling function to the base workspace
다운로드 수: 4.4K
업데이트 날짜: 2009/8/18

라이선스 보기

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.

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
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