function exts = getAllModules(h)
%

%   Copyright 2014-2016 The MathWorks, Inc.
srcs = h.Components.SourceFiles.value;
[~,~,exts] = cellfun( @fileparts, srcs, 'UniformOutput', false );

