Version (1.36 KB) by Dan K
Copies all variables into the base workspace for debugging
Updated 13 Jan 2012

View License

% assignBase - Assigns all variables in the caller to equally named variables in
% the base workspace. Only operates in non-compiled code. This function is primarily useful for using
% cell mode for debugging functions where the variable states are flushed upon termination. Especially
% effective when combined with dbstop if error

Cite As

Dan K (2024). AssignBase (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Debugging and Analysis in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes