View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Object oriented programming examples

3.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 8.07 KB File ID: #29637 Version: 1.5
image thumbnail

Object oriented programming examples



06 Dec 2010 (Updated )

examples from book: MATLAB and Simulink, 3e: User's Guide) by Bogumila and Zbigniew Mrozek

| Watch this File

File Information

Examples of classes inheritance, public and private attributes and methods from chapter 5.7 of the new edition of book by Bogumila and Zbigniew Mrozek. Comments are in Polish and English language. Save all files in same folder, then run: See also improved OOP examples of "Object oriented program example: animated traffic lights on road intersection" by Bogumila & Zbigniew MROZEK
(1) m571 -- how to define class and introduce object ,
(2) m573 -- error, as private attribute is not seen outside its object
(3) m574 -- private attribute is seen, if get function is used
(4) m575 -- testing trasa method, do I have enough fuel?
(5) m590 -- inheritance test

MATLAB release MATLAB 9.0 (R2016a)
MATLAB Search Path
Other requirements tested also with MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
01 Apr 2016 Bogumila & Zbigniew MROZEK

see also new OOP example

Comment only
07 Dec 2010 Thomas Pieper

Nice examples, but the english comments are missing ...

27 Dec 2010 1.1

More comments in English language.

18 Sep 2012 1.3

minor changes in Auto.m m571.m m590.m

04 Oct 2012 1.4

Tested with MATLAB 2012B, Screenshot changed.

04 Oct 2012 1.5

Description extended

11 Aug 2016 1.5

tested with MATLAB (R2016a), changed "Description" .

22 Feb 2017 1.5

Minor changes in descrioption

Contact us