28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Control Flow<br />

break Terminate execution of for loop or while loop<br />

case Case switch<br />

catch Begin catch block<br />

continue Pass control to next iteration of for or while loop<br />

else Conditionally execute statements<br />

elseif Conditionally execute statements<br />

end Terminate conditional statements, or indicate last index<br />

error Display error messages<br />

for Repeat statements specific number of times<br />

if Conditionally execute statements<br />

otherwise Default part of switch statement<br />

return Return to invoking function<br />

switch Switch among several cases based on expression<br />

try Begin try block<br />

while Repeat statements indefinite number of times<br />

Function Handles<br />

Programming and Data Types<br />

class Return object’s class name (e.g. function_handle)<br />

feval Evaluate function<br />

function_handle<br />

Describes function handle data type<br />

functions Return information about function handle<br />

func2str Constructs function name string from function handle<br />

isa Determine if item is object of given class (e.g. function_handle)<br />

isequal Determine if function handles are equal<br />

str2func Constructs function handle from function name string<br />

Object-Oriented Programming<br />

MATLAB Classes and Objects<br />

class Create object or return class of object<br />

fieldnames List public fields belonging to object,<br />

inferiorto Establish inferior class relationship<br />

isa Determine if item is object of given class<br />

isobject Determine if item is MATLAB OOPs object<br />

loadobj User-defined extension of load function for user objects<br />

methods Display information on class methods<br />

methodsview Display information on class methods in separate window<br />

saveobj User-defined extension of save function for user objects<br />

subsasgn Overloaded method for A(I)=B, A{I}=B, and A.field=B<br />

1-35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!