Member Variables and Member Functions

Access Full Text

Member Variables and Member Functions

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

Buy chapter PDF
£10.00
(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
Name:*
Email:*
Your details
Name:*
Email:*
Department:*
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.

Author(s): Andy H. Register
Source: A Guide to MATLAB® Object-Oriented Programming,2007
Publication date January 2007

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
  • 3.2.1.1 cShape Variables
  • 3.2.2 cShape Members
  • 3.2.2.1 cShape Private Member Variables
  • 3.2.2.2 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
  • 3.2.4.1 Constructor
  • 3.2.4.2 Accessors
  • 3.2.4.3 Mutators
  • 3.2.4.4 Combining an Accessor and a Mutator
  • 3.2.4.5 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
Zoomout

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

content/books/10.1049/sbpc001e_ch3
pub_keyword,iet_inspecKeyword,pub_concept
6
6
Loading