MATLAB does not have a built-in package manager, so you'll need to use the Setup Script to download and install additional toolboxes. The shell script below downloads the CVX archive from the CVX Research website using curl ¹, extracts it using tar , and runs the MATLAB command that sets up the toolbox:

curl -s http://web.cvxr.com/cvx/cvx-rd.tar.gz | tar zx
matlab -nodisplay -r "cd cvx; cvx_setup()"

VLFeat can be similarly installed using the following script:

VLFEAT_RELEASE=0.9.20

curl -s http://www.vlfeat.org/download/vlfeat-$(VLFEAT_RELEASE)-bin.tar.gz | tar xz

matlab -nodisplay -r "addpath('/vlfeat-$VLFEAT_RELEASE/toolbox'); vl_setup; savepath;"

MOSEK has kindly provided a license for use on Code Ocean, and can be installed by adding bzip2 as apt-get dependency and using the following script:

MOSEK_RELEASE=8.1.0.31

curl -sL https://d2i6rjz61faulo.cloudfront.net/stable/$MOSEK_RELEASE/mosektoolslinux64x86.tar.bz2 | tar xj

matlab -nodisplay -r "addpath('/mosek/8/toolbox/r2014a');"

Similarly, YALMIP can be installed together with MOSEK using the following script:

YALMIP_RELEASE=R20171121
MOSEK_RELEASE=8.1.0.31

curl -sL https://github.com/yalmip/YALMIP/archive/$YALMIP_RELEASE.tar.gz | tar xz

curl -sL https://d2i6rjz61faulo.cloudfront.net/stable/$MOSEK_RELEASE/mosektoolslinux64x86.tar.bz2 | tar xj

matlab -nodisplay -r \
  "addpath('/mosek/8/toolbox/r2014a'); addpath(genpath('/YALMIP-$YALMIP_RELEASE')); savepath;"
  1. "cURL". wikipedia.org.
Did this answer your question?