getHeaderImpl

Class: matlab.system.display.Header
Package: matlab.system.display

Header for System object display

Syntax

header = getHeaderImpl

Description

header = getHeaderImpl returns the header to display for the System object™. If you do not specify the getHeaderImpl method, no title or text appears for the header in the block dialog box.

getHeaderImpl is called by the MATLAB System block

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

Output Arguments

header

Header text

Examples

expand all

Define Header for System Block Dialog Box

Define a header in your class definition file for the EnhancedCounter System object.

 methods (Static, Access = protected)
    function header = getHeaderImpl
       header = matlab.system.display.Header('EnhancedCounter',...
           'Title','Enhanced Counter');
    end
 end
Was this topic helpful?