Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

ismethod

Determine if method of object

Syntax

tf = ismethod(obj,'methodName')

Description

tf = ismethod(obj,'methodName') returns logical 1 (true) if the specified methodName is a public method of object obj. Otherwise, returns logical 0 (false).

Examples

Determine if objects support equality testing:

if ismethod(obj1,'eq') && ismethod(obj2,'eq')
   tf = obj1 == obj2;
end

Related Examples

See Also

| | |

Introduced before R2006a

Was this topic helpful?