Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

MATLAB Programming/Advanced Topics/Object Oriented Programming

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Object Oriented Programming MATLAB as well as Octave have object oriented capabilities. Yet, technically it is not fully an object oriented language. An Object Oriented Language(OOL) has three components: 1. Polymorphism 2. Inheritance 3. Encapsulation Octave can be extended by adding new objects. Those objects can overload the operators like e.g. assignment, slicing, comparison. While in MATLAB, this can be done with m-script, in Octave new objects are implemented as C++ classes. A simple example of how objects can be added to Octave can be found here. Struct arraysImage:25%.svg MATLAB classesFile:00%.svg