Simple Object Creation in Matlab Object Oriented Programming
Version 1.2.0.1 (43,2 ko) par
Michael Chan
The objective is to provide a simple sample code to illustrate OOP in Matlab.
main executing reference usages:
1. usage_dynamicVariableNaming.m
a. dynamicVariableNaming.m : a Composite object (Structural in terms of design patterns) as part of an interpretor simulator for collecting variable data.
2. usage_subjectElement_WorldWithinWorlds.m : demonstrate composites with composite
a. subjectElement.m : a Composite object
3. usage_CreateBinaryTreeManually_Partial : an example of using a node to create a binary tree (manual and partial example)
a. node.m : node object
* Caveat:
1. For reference only.
2. Only for behavior observation.
If the illustrative demo has more elegant presentation, please do not hesitate to suggest and send feedback to the author.
Thank you.
Regards,
Michael Chan JT
Citation pour cette source
Michael Chan (2026). Simple Object Creation in Matlab Object Oriented Programming (https://fr.mathworks.com/matlabcentral/fileexchange/39769-simple-object-creation-in-matlab-object-oriented-programming), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Software Development Tools >
- MATLAB > Programming > Classes > Construct and Work with Object Arrays >
En savoir plus sur Software Development Tools dans Help Center et MATLAB Answers
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
BinaryTree
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.2.0.1 | . |
||
| 1.2.0.0 | added a 3rd example of using a node object to create a binary tree (manual and partial example) |
||
| 1.1.0.0 | Added a 2nd example to demonstrate composites with composite.
|
||
| 1.0.0.0 |
