( ) |
Pass function arguments |
% |
Insert comment line into code |
... |
Continue statement to next line |
depfun |
List dependent functions of M-file or P-file |
depdir |
List dependent directories of M-file or P-file |
function |
Function M-files |
input |
Request user input |
inputname |
Input argument name |
mfilename |
Name of currently running M-file |
namelengthmax |
Return maximum identifier length |
nargin |
Number of function input arguments |
nargout |
Number of function output arguments |
nargchk |
Check number of input arguments |
nargoutchk |
Validate number of output arguments |
pcode |
Create preparsed pseudocode file (P-file) |
script |
Describes script M-file |
varargin |
Accept variable number of arguments |
varargout |
Return variable number of arguments |
builtin |
Execute builtin function from overloaded method |
cellfun |
Apply function to each element in cell array |
eval |
Interpret strings containing MATLAB expressions |
evalc |
Evaluate MATLAB expression with capture |
evalin |
Evaluate expression in workspace |
feval |
Evaluate function |
iskeyword |
Determine if item is MATLAB keyword |
isvarname |
Determine if item is valid variable name |
pause |
Halt execution temporarily |
run |
Run script that is not on current path |
script |
Describes script M-file |
symvar |
Determine symbolic variables in expression |
tic, toc |
Stopwatch timer |
break |
Terminate execution of for loop or while loop |
case |
Case switch |
catch |
Begin catch block |
continue |
Pass control to next iteration of for or while loop |
else |
Conditionally execute statements |
elseif |
Conditionally execute statements |
end |
Terminate conditional statements, or indicate last index |
error |
Display error messages |
for |
Repeat statements specific number of times |
if |
Conditionally execute statements |
otherwise |
Default part of switch statement |
return |
Return to invoking function |
switch |
Switch among several cases based on expression |
try |
Begin try block |
while |
Repeat statements indefinite number of times |
MATLAB Classes and Objects
|
class |
Create object or return class of object |
fieldnames |
List public fields belonging to object, |
inferiorto |
Establish inferior class relationship |
isa |
Detect object of given class |
isobject |
Determine if item is MATLAB OOPs object |
loadobj |
User-defined extension of load function for user objects |
methods |
Display method names |
methodsview |
Displays information on all methods implemented by class |
saveobj |
User-defined extension of save function for user objects |
subsasgn |
Overloaded method for A(I)=B , A{I}=B , and A.field=B |
subsindex |
Overloaded method for X(A) |
subsref |
Overloaded method for A(I) , A{I} and A.field |
substruct |
Create structure argument for subsasgn or subsref |
superiorto |
Establish superior class relationship |
Java Classes and Objects
|
cell |
Convert Java array object to cell array |
class |
Return class name of Java object |
clear |
Clear Java packages import list |
depfun |
List Java classes used by M-file |
exist |
Detect if item is Java class |
fieldnames |
List public fields belonging to object |
im2java |
Convert image to instance of Java image object |
import |
Add package or class to current Java import list |
inmem |
List names of Java classes loaded into memory |
isa |
Detect object of given class |
isjava |
Determine whether object is Java object |
javaArray |
Constructs Java array |
javaMethod |
Invokes Java method |
javaObject |
Constructs Java object |
methods |
Display methods belonging to class |
methodsview |
Display information on all methods implemented by class |
which |
Display package and class name for method |