The "quadprog" functionality is part of the "Optimization Toolbox". In order to use it, it needs to be installed as well as licensed. For verifiying the nistallation, use the
command. For licensing the command
It should return "1". If not, please call the adminstrator of the MATLAB licenses in your organization.