dump2workspace

版本 1.0.0.0 (366 字节) 作者: Magnus
Dumps all variables from current scope into base scope
20.0 次下载
更新时间 2016/5/18

查看许可证

If called from within a function, dump2workspace.m will save all variables within scope to the base workspace.
A lot of times when I develop scripts, I find myself wanting to write a function specific to the script contained in the same file. Then, the script must have a "main"-function to call, with the drawback that the script variables are not seen in the workspace after a run. So during the development phase, I put this at the end of the main function call, to be able to access my variables easily after a run with no fuzz (that is, no breakpoints or return variables, etc).

引用格式

Magnus (2024). dump2workspace (https://www.mathworks.com/matlabcentral/fileexchange/57183-dump2workspace), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Scopes and Data Logging 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0