Member Variables and Member Functions

Member Variables and Member Functions

For access to this article, please select a purchase option:

Buy chapter PDF
(plus tax if applicable)
Buy Knowledge Pack
10 chapters for £75.00
(plus taxes if applicable)

IET members benefit from discounts to all IET publications and free access to E&T Magazine. If you are an IET member, log in to your account and the discounts will automatically be applied.

Learn more about IET membership 

Recommend Title Publication to library

You must fill out fields marked with: *

Librarian details
Your details
Why are you recommending this title?
Select reason:
A Guide to MATLAB® Object-Oriented Programming — Recommend this title to your library

Thank you

Your recommendation has been sent to your librarian.

The paper discusses the MATLAB framework development that includes both discussions and example code. The example code forms the basis of every class implementation. Due to its ultimate importance, the example code needs to be compact and efficient. In most of the example code, the desire for efficiency pushes the code syntax into the realm of advanced coding techniques. The discussions around each example include a brief explanation of the syntax. Many MATLAB references focus exclusively on language syntax. The discussions around each example also provide an in-depth explanation of the object-oriented aspects. The object-oriented discussions are the central focus because there is no other comprehensive reference source.

Chapter Contents:

  • 3.1 Members
  • 3.2 Accessors and Mutators
  • 3.2.1 A Short Side Trip to Examine Encapsulation
  • cShape Variables
  • 3.2.2 cShape Members
  • cShape Private Member Variables
  • cShape Public Interface
  • 3.2.3 A Short Side Trip to Examine Function Search Priority
  • 3.2.4 Example Code: Accessors and Mutators, Round 1
  • Constructor
  • Accessors
  • Mutators
  • Combining an Accessor and a Mutator
  • Member Functions
  • 3.2.5 Standardization
  • 3.3 The Test Drive
  • 3.4 Summary
  • 3.5 Independent Investigations

Inspec keywords: object-oriented methods

Other keywords: MATLAB member variable; language syntax; coding technique; MATLAB framework development; MATLAB references; object-oriented discussion; example code; MATLAB member function

Subjects: Object-oriented programming

Preview this chapter:
Zoom in

Member Variables and Member Functions, Page 1 of 2

| /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch3-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch3-2.gif

Related content

This is a required field
Please enter a valid email address