save_to_base

버전 1.0.0.0 (1011 Bytes) 작성자: Chen Qi
Save variables in the current workspace (for example: in function) to base workspace and rename them
다운로드 수: 97
업데이트 날짜: 2015/6/11

라이선스 보기

This function is useful in several aspects:
1. when you debug your program, you can save any variables in your function to base workspace and compared them by just add save_to_base line in your function. You can rename them when you save them so every run you will get different names for same variables in your base workspace.
2. It can be set to a button's callback in GUI so you can let user to save GUI data into base workspace.

3. When you do script programming using a function in order to avoid namespace conflict (I always do so), some apps (such as curve fitting or distribution fitting app) may not be able to use: because they only read data from base workspace. This function lets you easily use those apps by just output the variables you need to base workspace. You can rename them when you export them into base workspace. I found script using function and export needed variables into base workspace is a perfect workflow for me to keep my base workspace clean and organized.

인용 양식

Chen Qi (2024). save_to_base (https://www.mathworks.com/matlabcentral/fileexchange/51157-save_to_base), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
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.0.0.0