Main Content

Set Output Port Properties

TheSource.mreference System object™ contains a common default implementation of the methods that define the block's output port properties.

methods(Access=protected)%% Define output properties...functionnum = getNumOutputsImpl(~) num = 1;endfunctionvarargout = isOutputFixedSizeImpl(~,~) varargout{1} = true;endfunctionvarargout = isOutputComplexImpl(~) varargout{1} = false;endfunctionvarargout = getOutputSizeImpl(~) varargout{1} = [1,1];endfunctionvarargout = getOutputDataTypeImpl(~) varargout{1} = 'double';end...end

For theDigitalReadSystem object, the default values do not require modification.

In the next section, you willTest System Object.

See Also

||