Simplify Using get, set, fieldnames, and struct

Simplify Using get, set, fieldnames, and struct

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 develops the implementations for a small but very important collection of member functions. In their order of development, the functions belonging to this so-called group-of-eight are as follows: default constructor (e.g., cShape); subsref; subsasgn; display; fieldnames; struct; get; and set.

Chapter Contents:

  • 9.1 Improving subsref.m
  • 9.2 Improving subsasgn.m
  • 9.3 Improving display.m
  • 9.4 Test Drive
  • 9.5 Summary
  • 9.6 Independent Investigations

Inspec keywords: object-oriented programming

Other keywords: struct function; member function; fieldnames function; Matlab; default constructor function; subsasgn function; set function; display function; cShape function; group-of-eight function; get function; subsref function

Subjects: Object-oriented programming

Preview this chapter:
Zoom in

Simplify Using get, set, fieldnames, and struct, Page 1 of 2

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

Related content

This is a required field
Please enter a valid email address