getHeaderImpl

Header for System object display

Syntax

header = getHeaderImpl

Description

header = getHeaderImpl specifies the dialog header to display on the MATLAB® System block dialog box. 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 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