
- •Version of matlab on different machines. It does not offer direct
- •In the workspace or file. You must use the functional form of who when
- •In a nested function, variables are grouped into those in the nested
- •If you run out of memory often, here are some additional system
- •If you do not specify filename, the load function searches for a file
- •If any data items require features that the specified version does not
- •Valid options for format are:
- •VirtualAddressSpace: [1x1 struct]
- •If the flag -inplace is used, the result is placed in the same
- •Inmem List functions in memory.
- •Variable names
- •Visible.
- •Is automatically run.
- •Is stored in a string.
- •Controlling the command window.
- •Vdspdebug/cd
- •Input parameters:
- •If the specified name cannot be found, an empty matrix is returned.
- •Idivide - Integer division with rounding option.
- •Interactive user input which cannot be provided.
- •Debugging.
- •If the matlabpath contains 'relative' directories then any file in those
- •Indicates who calls whom. Called_from is arranged so that
- •Information from the shrlib library file. Notfound is a cell array of
- •Invoked from the Swing Event Dispatch Thread.
VirtualAddressSpace: [1x1 struct]
SystemMemory: [1x1 struct]
PhysicalMemory: [1x1 struct]
>> sV.VirtualAddressSpace
ans =
Available: 1.6797e+009
Total: 2.1474e+009
>> sV.SystemMemory
ans =
Available: 4.4288e+009
>> sV.PhysicalMemory
ans =
Available: 2.5376e+009
Total: 3.4889e+009
Reference page in Help browser
doc memory
<recycle> - Set option to move deleted files to recycle folder.
RECYCLE Set option to move deleted files to recycle folder.
The purpose of the RECYCLE function is to help the DELETE
function determine whether the deleted files should be
moved to the recycle bin on the PC and Macintosh, moved
to a temporary folder on Unix, or deleted.
OLDSTATE = RECYCLE(STATE) sets the recycle option to the one
specified by STATE. STATE can be either 'on' or 'off'. The
default value of STATE is 'off'. OLDSTATE is the state of
recycle prior to being set to STATE.
STATUS = RECYCLE returns the current state of the RECYCLE
function. It can be either 'on' or 'off'.
You can recycle files that are stored on your local computer system,
but not files that you access over a network connection. On Windows
systems, when you use the DELETE function on files accessed over a
network, MATLAB removes the file entirely.
See also delete.
Reference page in Help browser
doc recycle
<quit> - Quit MATLAB session.
QUIT Quit MATLAB session.
QUIT terminates MATLAB after running the script FINISH.M,
if it exists. The workspace information will not be saved
unless FINISH.M calls SAVE. If an error occurs while
executing FINISH.M, quitting is cancelled.
QUIT FORCE can be used to bypass an errant FINISH.M that
will not let you quit.
QUIT CANCEL can be used in FINISH.M to cancel quitting.
It has no effect anywhere else.
Example
Put the following lines of code in your FINISH.M file to
display a dialog that allows you to cancel quitting.
button = questdlg('Ready to quit?', ...
'Exit Dialog','Yes','No','No');
switch button
case 'Yes',
disp('Exiting MATLAB');
%Save variables to matlab.mat
save
case 'No',
quit cancel;
end
Note: When using Handle Graphics in FINISH.M make sure
to use UIWAIT, WAITFOR, or DRAWNOW so that figures are
visible.
See also exit.
Reference page in Help browser
doc quit
<exit> - Exit from MATLAB.
EXIT Exit from MATLAB.
EXIT terminates MATLAB after running finish.m, if finish.m exists.
It is the same as QUIT and takes the same termination options.
For more information, see the help for QUIT.
See also quit.
Reference page in Help browser
doc exit
Managing commands and functions.
<what> - List MATLAB-specific files in directory.
WHAT List MATLAB-specific files in directory.
The command WHAT, by itself, lists the MATLAB specific files found
in the current working directory. Most data files and other
non-MATLAB files are not listed. Use DIR to get a list of everything.
The command WHAT DIRNAME lists the files in directory dirname on
the MATLABPATH. It is not necessary to give the full path name of
the directory; a MATLABPATH relative partial pathname can be
specified instead (see PARTIALPATH). For example, "what general"
and "what matlab/general" both list the M-files in directory
toolbox/matlab/general.
W = WHAT('directory') returns the results of WHAT in a structure
array with the fields:
path -- path to directory
m -- cell array of m-file names.
mat -- cell array of mat-file names.
mex -- cell array of mex-file names.
mdl -- cell array of mdl-file names.
p -- cell array of p-file names.
classes -- cell array of class directory names.
packages -- cell array of package directory names.
See also dir, who, which, lookfor.
Reference page in Help browser
doc what
<type> - List M-file.
TYPE List M-file.
TYPE foo.bar lists the ascii file called 'foo.bar'.
TYPE foo lists the ascii file called 'foo.m'.
If files called foo and foo.m both exist, then
TYPE foo lists the file 'foo', and
TYPE foo.m list the file 'foo.m'.
TYPE PATHNAME/FUN lists the contents of FUN (or FUN.m)
given a full pathname or a MATLABPATH relative partial
pathname (see PARTIALPATH).
See also dbtype, which, help, partialpath, more.
Overloaded methods:
fittype/type
cgfuncmodel/type
cgexprmodel/type
xregstatsmodel/type
xregmodswitch/type
xregexportmodel/type
xregdataset/type
classregtree/type
Reference page in Help browser
doc type
<open> - Open files by extension.
OPEN Open files by extension.
OPEN NAME where NAME is a string, does different things
depending on the type of the object named by that string:
Type Action
---- ------
variable open named array in Variable Editor
.m file open M-file in M-file Editor
.p file if NAME resolves to a P-file and NAME did not end with a
.p extension, attempts to open matching M-file; if NAME
did end with a .p extension, displays an error
.mat file open MAT file; store variables in a structure
.mdl file open model in SIMULINK
.fig file open figure in Handle Graphics
.prj file open project in Compiler Development Tool
.html file open HTML document in MATLAB browser
.url file open an Internet location in your default Web browser
.doc* file open document in Microsoft Word
.pdf file open PDF document in Adobe Acrobat
.ppt* file open document in Microsoft PowerPoint
.xls* file start MATLAB Import Wizard
.exe file run Microsoft Windows executable file
OPEN works similar to LOAD in the way it searches for files.
If NAME exists on MATLAB path, open file returned by WHICH.
If NAME exists on file system, open file named NAME.
Examples:
open('f2') First looks for a variable named f2, then
looks on the path for a file named f2.mdl
or f2.m. Error if can't find any of these.
open('f2.mat') Error if f2.mat is not on path.
open('d:\temp\data.mat') Error if data.mat is not in d:\temp.
OPEN is user-extensible. To open a file with the extension ".XXX",
OPEN calls the helper function OPENXXX, that is, a function
named 'OPEN', with the file extension appended.
For example,
open('foo.log') calls openlog('foo.log')
open foo.log calls openlog('foo.log')
You can create your own OPENXXX functions to set up handlers
for new file types. OPEN will call whatever OPENXXX function
it finds on the path.
See also saveas, which, load, uiopen, fileformats, path.
Overloaded methods:
scribehandle/open
serial/open
instrument/open
vdspdebug/open
eclipseide/open
ghsmulti/open
icdevice/open
vrworld/open
ccsrtdx/open
ccsdebug/open
Reference page in Help browser
doc open
<which> - Locate functions and files.
WHICH Locate functions and files.
WHICH FUN displays the full pathname of the function with the name
FUN.
If FUN is something other than a function (a variable in the workspace,
a loaded Simulink model, a method of a Java class on the classpath),
then WHICH displays a message identifying it as such. If FUN is a
filename, including extension, then WHICH displays the full pathname of
that file.
WHICH FUN -ALL displays the paths to all functions with the name
FUN. Functions are displayed in order of their precedence. The first
function displayed has precedence over the second, and so on. This
information can be useful when you want to see which implementation of
a function would be dispatched to by MATLAB. See FUNCTION PRECEDENCE,
below.
You can use -ALL with any syntax for WHICH.
WHICH FUN(A,B,...) shows which implementation of function FUN would be
invoked if you were to call FUN with input arguments A, B, etc. Use
this syntax for overloaded functions.
WHICH FUN1 IN FUN2 displays the pathname to function FUN1 in the
context of the m-file FUN2. While debugging FUN2, WHICH FUN1 does
the same thing. You can use this to determine if a subfunction is
being called instead of a function on the path.
S = WHICH(...) returns the results of WHICH in the string S. (If WHICH
is called on a variable, then S is the string 'variable'.)
C = WHICH(...,'-ALL') returns the results of the multiple search
version of WHICH in the cell array C. Each row of cell array C
identifies a function and the functions are in order of precedence.
FUNCTION PRECEDENCE:
WHICH and WHICH -ALL expose the precedence rules used by MATLAB to
determine which implementation of a multiply-defined function to
dispatch to. MATLAB function precedence rules are described in the
M-File Programming chapter of the MATLAB Programming documentation
under Calling Functions => Determining Which Function Is Called.
See also dir, help, who, what, exist, lookfor.
Reference page in Help browser
doc which
<pcode> - Create pre-parsed pseudo-code file (P-file).
PCODE Create content-obscured but executable files (pcoded files).
PCODE F1 F2... makes content-obscured versions of F1, F2...
The arguments F1, F2... must describe MATLAB functions or files
containing MATLAB code.