save_to_base

Versione 1.0.0.0 (1011 Byte) da Chen Qi
Save variables in the current workspace (for example: in function) to base workspace and rename them
97 download
Aggiornato 11 giu 2015

Visualizza la licenza

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.

Cita come

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

Compatibilità della release di MATLAB
Creato con R2015a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Workspace Variables and MAT-Files in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0