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 Center および MATLAB AnswersWorkspace 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