function islicensed = istbxlicensed(licstr)
% ISTBXLICENSED - Returns true if toolbox specified by input is licensed in
% the current MATLAB session. Will always return true in deployed mode (the
% LICENSE function does not work in deployed mode).
%
% INPUTS:
% licstr - Used in desktop mode, a char array passed to LICENSE
%
% EXAMPLE:
% % Test for DSP System Toolbox
% b = istbxlicensed('Signal_Blocks');

islicensed = isdeployed || license('test',licstr);
