function funcStr = generateTaskFunctionString(func)
%

%   Copyright 2010-2016 The MathWorks, Inc.

; %#ok Undocumented
% Returns a character vector representing the task function given the function
% handle, ensuring that it begins with an '@'.

funcStr = char(func);
if ~isempty(funcStr) && funcStr(1) ~= '@'
    funcStr = ['@' funcStr];
end
