Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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™

Output Arguments

name1,name2,...

Names of the outputs for the specified object, returned as character vectors.

Default: empty character vector

Examples

expand all

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

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