23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Object Precedence<br />

The inferiorto function places a class below other classes in the precedence<br />

hierarchy. The calling syntax for the inferiorto function is<br />

inferiorto('class1','class2',...)<br />

You can specify multiple classes in the argument list, placing the class below<br />

many other classes in the hierarchy.<br />

Similarly, the superiorto function places a class above other classes in the<br />

precedence hierarchy. The calling syntax for the superiorto function is<br />

superiorto('class1','class2',...)<br />

Location in the Hierarchy<br />

If objectA is above objectB in the precedence hierarchy, then the expression<br />

objectA + objectB<br />

calls @classA/plus.m. Conversely, if objectB is above objectA in the<br />

precedence hierarchy, then <strong>MATLAB</strong> calls @classB/plus.m.<br />

See “How <strong>MATLAB</strong> Determines Which Method to Call” on page 9-72 for<br />

related information.<br />

9-71

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

Saved successfully!

Ooh no, something went wrong!