issubclass
tf = issubclass(SubClassName,SuperClassName) 
Returns true if the specified "SubClassName" is a subclass of 
the class specified by "SuperClassName", otherwise returns false.
  Inputs:
     SubClassName: string. Name of the "Sub Class" that you are testing
                   to see if it was inherited from the specified 
                   "SuperClass"
     SuperClassName: string.  Name of the "Super Class" that you are
                     testing to see if the sub-class was inherited from
 Output:
    tf: logical, true if "SubClassName" is in fact a subclass of "SuperClassName"
                     
Examples:
>> tf = issubclass('MySubClass','MySuperClass')
>> x = MySubClass;
>> y = MySuperClass;
>> tf = issubclass(class(x),class(y);
Cita come
Jesse Hopkins (2025). issubclass (https://it.mathworks.com/matlabcentral/fileexchange/34706-issubclass), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Language Fundamentals > Data Types > Data Type Identification >
- MATLAB > Programming > Classes > Construct and Work with Object Arrays >
- MATLAB > Language Fundamentals > Data Types > Dictionaries >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | 
