getOutputNamesImpl

Class: matlab.System
Package: matlab

Names of System block output ports

Syntax

[name1,name2,...] = getOutputNamesImpl(obj)

Description

[name1,name2,...] = getOutputNamesImpl(obj) returns the names of the output ports from System object, obj implemented in a MATLAB System block. The number of returned output names matches the number of outputs returned by the getNumOutputs method. If you change a property value that affects the number of outputs, the names of those outputs also change.

getOutputNamesImpl is called by the getOutputNames method and by the MATLAB System block.

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

Input Arguments

obj

System object™ handle

Output Arguments

name1,name2,...

Names of the outputs for the specified object.

Default: empty string

Examples

expand all

Specify Output Port Name

Specify the name of an output port as 'count'.

methods (Access = protected)
   function outputName = getOutputNamesImpl(~)
      outputName = 'count';
   end
end
Was this topic helpful?