| Contents | Index |
mcls = meta.class.fromName('ClassName')
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
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |