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.

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

meta.class.fromName

Return meta.class object associated with named class

Syntax

mcls = meta.class.fromName('ClassName')

Description

mcls = meta.class.fromName('ClassName') is a static method that returns the meta.class object associated with the class ClassName. Note that you can also use the ? operator to obtain the meta.class object for a class name:

mcls = ?ClassName;

The equivalent call to meta.class.fromName is:

mcls = meta.class.fromName('ClassName');

Use meta.class.fromName when using a char variable for the class name:

function mcls = getMetaClass(clname) 
   % Do error checking
   mcls = meta.class.fromName(clname);
   ...
end

See Also

Was this topic helpful?