Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
17
Добавлен:
09.02.2015
Размер:
336.38 Кб
Скачать

If a function is called with two objects with an unspecified

relationship, then the two objects are considered to be of equal

precedence and the leftmost object's method is called. So

FUN(B,C) calls CLASS_B/FUN, while FUN(C,B) calls CLASS_C/FUN.

See also inferiorto, class.

Reference page in Help browser

doc superiorto

<substruct> - Create structure argument for SUBSREF or SUBSASGN.

SUBSTRUCT Create structure argument for SUBSREF or SUBSASGN.

S = SUBSTRUCT(TYPE1,SUBS1,TYPE2,SUBS2,...) creates a structure with

the fields required by an overloaded SUBSREF or SUBSASGN method.

Each TYPE string must be one of '.', '()', or '{}'. The

corresponding SUBS argument must be either a field name (for

the '.' type) or a cell array containing the index vectors (for

the '()' or '{}' types). The output S is a structure array

containing the fields:

type -- subscript types '.', '()', or '{}'

subs -- actual subscript values (field names or cell arrays

of index vectors)

For example, to call SUBSREF with parameters equivalent to the syntax

B = A(i,j).field

use

S = substruct('()',{i j},'.','field');

B = subsref(A,S);

Similarly,

subsref(A, substruct('()',{1:2, ':'})) performs A(1:2,:)

subsref(A, substruct('{}',{1 2 3})) performs A{1,2,3}.

See also subsref, subsasgn.

Reference page in Help browser

doc substruct

<ismethod> - True if method of an object.

ISMETHOD True if method of object.

ISMETHOD(OBJ,NAME) returns 1 if string NAME is a method of object

OBJ, and 0 otherwise.

Example:

Hd = dfilt.df2;

f = ismethod(Hd, 'order')

See also methods.

Reference page in Help browser

doc ismethod

<isprop> - Returns true if the property exists

ISPROP Returns true if the property exists.

ISPROP(H, PROP) Returns true if PROP is a property of H. This function

tests for Handle objects and Handle Graphics objects.

Reference page in Help browser

doc isprop

<metaclass> - Metaclass for MATLAB class

? METACLASS Return META.CLASS object

MC = METACLASS(OBJECT) returns the META.CLASS object for the class

of OBJECT. OBJECT can be either a scalar object or an array of

objects, but the returned object is always the scalar META.CLASS for

the class of OBJECT.

MC = ? CLASSNAME will retrieve the META.CLASS object for the class

with name CLASSNAME. The ? syntax works only with a class name and

not with a class instance.

Examples:

%Example 1: Retrieve the meta-class for class inputParser

?inputParser

%Example 2: Retrieve the meta-class for an instance of class MException

obj = MException('Msg:ID','MsgTxt');

mc = metaclass(obj);

See also meta.class, meta.class/fromName, classdef.

Reference page in Help browser

doc metaclass

<loadobj> - Called when loading an object from a .MAT file.

LOADOBJ Load filter for objects.

B = LOADOBJ(A) is called by LOAD when an object is loaded from a .MAT

file. The return value B is subsequently used by LOAD to populate the

workspace. LOADOBJ can be used to convert one object type into

another, to update an object to match a new object definition, or to

restore an object that maintains information outside of the object

array.

Соседние файлы в папке Библиотеки Matlab