Here’s a small function I use to retrieve a function handle to MATLAB’s quadprog which is shadowed when I have installed the mosek toolbox:


% (useful if, say, mosek has shadowed it)
%
%
% Outputs:
%  matlab_path  path to matlab's quadprog
%
% help(matlab_path);

% get list of all quadprogs
% remember current directory
old_dir = pwd;
matlab_path = paths(~cellfun(@isempty,regexp(paths,'MATLAB')));
matlab_path = matlab_path{1};
% move to that directory