function sc = getsubcomponent(this,subcname)
%GETSUBCOMPONENT Utility to get a subcomponent.

% Author(s): P. Costa
% Copyright 2005-2017 The MathWorks, Inc.
%

if ~isempty(this.SubComponents)
sc = find(this.SubComponents,'-class',subcname,'-depth',0); %#ok
else
sc = [];
end
end