A couple of personal scripts I have used during my PhD (many of questionable use/implementation) The datadriven class requires MOSEK 9 and MOSEK Fusion. Download MOSEK, and add the Fusion interface to MATLAB javaaddpath /__PATH_TO_MOSEK__/mosek/9.3/tools/platform/__PLATEFORM__/bin/mosek.jar