infoImpl

Class: matlab.System
Package: matlab

Information about System object

Syntax

s = infoImpl(obj,varargin)

Description

s = infoImpl(obj,varargin) lets you set up information to return about the current configuration of a System object™ obj. This information is returned in a struct from the info method. The varargin argument is optional. The default infoImpl method, which is used if you do not include infoImpl in your class definition file, returns an empty struct.

infoImpl is called by the info method.

    Note:   You must set Access = protected for this method.

Input Arguments

obj

System object handle

varargin

Allow variable number of inputs

Examples

expand all

Define infoImpl to return System object information

Define the infoImpl method to return current count information for info(obj).

methods (Access = protected)
   function s = infoImpl(obj)
      s = struct('Count',obj.pCount);
   end
end
Was this topic helpful?