function docsearch(topic)
% Copyright 2009-2016 The MathWorks, Inc.

msg = '';
if nargin > 0 && ((ischar(topic) && isrow(topic)) || ...
        (isstring(topic) && isscalar(topic)))
    topic = strtrim(char(topic));
    if ~isempty(topic)
        msg = ['Help for ''' topic ''' unavailable.'];
    end
end

warndlg(sprintf(...
    ['The DOCSEARCH command cannot be used in compiled applications.'...
    ' For help please visit the MathWorks web site at ' ...
    'www.mathworks.com.\n\n%s'], msg), ...
    'Compiler: DOCSEARCH command unavailable');
