- •If expression
- •If expression
- •Various errors can be generated. The mnemonic field is a string
- •It is false, displays the formatted string contained in errmsg. The errmsg
- •If a function handle is bound to more than one built-in or
- •Inline/feval
- •Inputname, mfilename.
- •Value to use when the optional argument argname is not present in the
- •Identifier : ''
- •Issued by matlab.
Identifier : ''
stack : 0-by-1 structure with fields: file, name, and line
This function depends on global state, and its programmatic use is not
encouraged. The new syntax,
try
execute_code;
catch exception
do_cleanup;
throw(exception);
end
should be used instead, where possible. At the command line,
MException.last contains all of the information in LASTERROR.
See also MException, MException/last, error, rethrow, try, catch,
dbstack.
Reference page in Help browser
doc lasterror
<lastwarn> - Last warning message.
LASTWARN Last warning message.
LASTWARN, by itself, returns a string containing the last warning message
Issued by matlab.
[LASTMSG, LASTID] = LASTWARN returns two strings, the first containing the
last warning message issued by MATLAB and the second containing the last
warning message's corresponding message identifier (see HELP WARNING for
more information on message identifiers).
LASTWARN('') resets the LASTWARN function so that it will return an empty
string matrix for both LASTMSG and LASTID until the next warning is
encountered.
LASTWARN('MSG', 'MSGID') sets the last warning message to MSG and the last
warning message identifier to MSGID. MSGID must be a legal message
identifier (or an empty string).
The WARNING function will update LASTWARN's state irrespective of
whether the warning invoked was on or off at the time.
See also warning, MException/last.
Reference page in Help browser
doc lastwarn
<disp> - Display array.
DISP Display array.
DISP(X) displays the array, without printing the array name. In
all other ways it's the same as leaving the semicolon off an
expression except that empty arrays don't display.
If X is a string, the text is displayed.
See also int2str, num2str, sprintf, rats, format.
Overloaded methods:
opaque/disp
categorical/disp
inline/disp
cdfepoch/disp
timer/disp
serial/disp
memmapfile/disp
ftp/disp
audiorecorder/disp
audioplayer/disp
VideoReader/disp
instrument/disp
vdspdebug/disp
modem.disp
sfit/disp
fittype/disp
cfit/disp
digitalio/disp
daqchild/disp
analogoutput/disp
analoginput/disp
distributed/disp
codistributor2dbc/disp
codistributor1d/disp
codistributed/disp
eclipseide/disp
qfft/disp
ghsmulti/disp
imaqdevice/disp
imaqchild/disp
iviconfigurationstore/disp
icgroup/disp
xregpointer/disp
network/disp
opcda/disp
daitem/disp
dagroup/disp
dataset/disp
vrworld/disp
vrnode/disp
vrfigure/disp
piecewisedistribution/disp
gmdistribution/disp
classregtree/disp
ProbDistUnivParam/disp
ProbDistUnivKernel/disp
ProbDist/disp
NaiveBayes/disp
sym/disp
ccsrtdx/disp
ccsdebug/disp
wptree/disp
wdectree/disp
ntree/disp
laurpoly/disp
laurmat/disp
dtree/disp
Reference page in Help browser
doc disp
<display> - Display array.
DISPLAY Display array.
DISPLAY(X) is called for the object X when the semicolon is not used
to terminate a statement.
For example,
X = inline('sin(x)')
calls DISPLAY(X) while
X = inline('sin(x)');
does not.
A typical implementation of DISPLAY calls DISP to do most of the work
and looks as follows. Note that DISP does not display empty arrays.
function display(X)
if isequal(get(0,'FormatSpacing'),'compact')
disp([inputname(1) ' =']);
disp(X);
else
disp(' ');
disp([inputname(1) ' =']);
disp(' ');
disp(X);
end
See also inputname, disp, evalc.
Overloaded methods:
opaque/display
categorical/display
inline/display
cdfepoch/display
timer/display
serial/display
ftp/display
avifile/display
audiorecorder/display
audioplayer/display
VideoReader/display
tscollection/display
timeseries/display
SimTimeseries/display
instrument/display
vdspdebug/display
phytree/display
gf/display
zpk/display
tf/display
ss/display
pidstd/display
pid/display
dynamicsys/display
frd/display
sfit/display
daqdevice/display
daqchild/display
dbtbx/display
yahoo/display
reuters/display
rdth/display
kx/display
idc/display
haver/display
fred/display
factset/display
datastream/display
blp/display
bloomberg/display
distributed/display
codistributor2dbc/display
codistributor1d/display
codistributed/display
eclipseide/display
qfft/display
fints/display
rptfpmethods/display
ghsmulti/display
idss/display
idproc/display
idpoly/display
idmodel/display
idgrey/display
idfrd/display
iddata/display
idarx/display
unitgain/display
idnlmodel/display
idnlhw/display
idnlgrey/display
idnlfun/display
idnlarx/display
customreg/display
imaqdevice/display
imaqchild/display
iviconfigurationstore/display
icgroup/display
xregpointer/display
cgprec/display
cgoppoint/display
cgfuncmodel/display
cgexprmodel/display
coninputfactor/display
conbase/display
cgvariable/display
cgsubexpr/display
cgrelexpr/display
cgnormfunction/display
cgnormaliser/display
cgmswitchexpr/display
cgmodexpr/display
cgminmaxexpr/display
cglookuptwo/display
cglookupone/display
cgifexpr/display
cgfuncexpr/display
cgfeature/display
cgdivexpr/display
cgclipexpr/display
xregstatsmodel/display
xregmodswitch/display
xregmodel/display
xreglolimot/display
xregcovariance/display
mbcinputfactor/display
sweepsetfilter/display
sweepset/display
cvtest/display
cvdata/display
mpcsimopt/display
mpc/display
network/display
opcroot/display
wcgopt/display
uss/display
umat/display
ufrd/display
robopt/display
optunit/display
ndlft/display
icsignal/display
dkitopt/display
atomlist/display
atom/display
sgmltag/display
rptparent/display
rptcp/display
rptcomponent/display
zhgmethods/display
rptsp/display
rptsetupfile/display
rpt_summ_table/display
zslmethods/display
zsfmethods/display
SimData/display
dataset/display
vrworld/display
vrnode/display
vrfigure/display
piecewisedistribution/display
gmdistribution/display
classregtree/display
ProbDist/display
NaiveBayes/display
sym/display
ccsrtdx/display
ccsdebug/display
wtbo/display
laurpoly/display
laurmat/display
smpartsbs25x0/display
smpartition/display
smnodesbs25x0/display
Reference page in Help browser
doc display
<intwarning> - Controls the state of the 4 integer warnings.
INTWARNING Controls the state of the 4 integer warnings.
The 4 integer warnings are:
MATLAB:intConvertNaN
MATLAB:intConvertNonIntVal
MATLAB:intConvertOverflow
MATLAB:intMathOverflow
INTWARNING will be removed in a future release.
Interactive input.
<input> - Prompt for user input.
INPUT Prompt for user input.
R = INPUT('How many apples') gives the user the prompt in the
text string and then waits for input from the keyboard.
The input can be any MATLAB expression, which is evaluated,
using the variables in the current workspace, and the result
returned in R. If the user presses the return key without
entering anything, INPUT returns an empty matrix.
R = INPUT('What is your name','s') gives the prompt in the text
string and waits for character string input. The typed input
is not evaluated; the characters are simply returned as a
MATLAB string.
The text string for the prompt may contain one or more '\n'.
The '\n' means skip to the beginning of the next line. This
allows the prompt string to span several lines. To output
just a '\' use '\\'.
See also keyboard.
Reference page in Help browser
doc input
<keyboard> - Invoke keyboard from M-file.
KEYBOARD Invoke keyboard from M-file.
KEYBOARD, when placed in an M-file, stops execution of the file
and gives control to the user's keyboard. The special status is
indicated by a K appearing before the prompt. Variables may be
examined or changed - all MATLAB commands are valid. The keyboard
mode is terminated by executing the command RETURN (i.e. typing
the six letters R-E-T-U-R-N and pressing the return key). Control
returns to the invoking M-file.
DBQUIT can also be used to get out of keyboard mode but in this case
the invoking M-file is terminated.
The keyboard mode is useful for debugging your M-files.
See also dbquit, dbstop, return, input.
Reference page in Help browser
doc keyboard
Abstract superclasses.
<handle> - Superclass of all handle classes.
HANDLE Superclass of all handle classes.
A handle is an object that indirectly references its data. When a
handle is constructed, an object with storage for property values is
created. The constructor returns a handle to this object. When a
handle object is copied, for example during assignment or when passed
to a MATLAB function, the handle is copied but not the underlying
object property values.
The HANDLE class is an abstract class and cannot be directly
constructed. It is the superclass for all classes that follow handle
semantics.
Classes that define events must be handle classes (i.e., they must be
derived from HANDLE). Classes that are derived from the built-in
classes HGSETGET or DYNAMICPROPS become handle classes. When defining
a class that inherits from two or more super-classes simultaneously,
all superclasses must be handle classes or none can be. A derived
class cannot inherit from both handle and value classes simultaneously.
Classes that are derived from HANDLE inherit no properties, but do
inherit the following methods which can be overridden as needed.
handle methods:
addlistener - Add listener for event.
delete - Delete a handle object.
eq - Test handle equality.
findobj - Find objects with specified property values.
findprop - Find property of MATLAB handle object.
ge - Greater than or equal relation.
gt - Greater than relation.
isvalid - Test handle validity.
le - Less than or equal relation for handles.
lt - Less than relation for handles.
ne - Not equal relation for handles.
notify - Notify listeners of event.
Reference page in Help browser
doc handle
<hgsetget> - HG-style set and get for MATLAB objects.
HGSETGET HG-style set and get for MATLAB objects.
The hgsetget class is an abstract class that provides an HG-style
property set and get interface. hgsetget is a subclass of handle, so
any classes derived from hgsetget are handle classes.
classdef MyClass < hgsetget makes MyClass a subclass of hgsetget.
Classes that are derived from hgsetget inherit no properties but
do inherit methods that can be overridden as needed.
HGSETGET methods:
set - Set MATLAB object property values.
get - Get MATLAB object properties.
setdisp - Specialized MATLAB object property display.
getdisp - Specialized MATLAB object property display.
See also handle
Reference page in Help browser
doc hgsetget
<dynamicprops> - Support for dynamic properties.
DYNAMICPROPS Support for dynamic properties.
The DYNAMICPROPS class is an abstract class that provides support
for dynamic properties for MATLAB objects. Dynamic properties can
be used to attach temporary data to MATLAB objects.
classdef Myclass < dynamicprops makes 'Myclass' a subclass of
dynamicprops, which is a subclass of handle.
See also handle, dynamicprops/addprop
Reference page in Help browser
doc dynamicprops