Text-only
Table of Contents (
frame
/
no frame
)
(17) Matlab Workspaces
Workspaces In Matlab
Matlab (or base) workspace
for command line and script variables
Function workspaces
Each function has its own workspace
Communicate to function workspace via inputs and outputs
Prevents name conflicts
Global workspace
Global variables can be shared by multiple workspaces
Must be initialized in all relevant workspaces
Functions related to workspaces
mlock
- prevent m-file from being cleared
munlock
- allow m-file to be cleared
persistent
-persistent variables keep their value from one function call to another
global
- initialize global variables in source workspace first
Matlab_Workspaces.src last modified Oct 17, 2007
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College