MATLAB R2011a or later.
Download and run the installation script install_mpt3.m in Matlab. The script basically executes the steps below and asks for installation directories.
- Remove any previous installations of MPT2 and YALMIP from your path. If you do not have MPT2 or YALMIP installed, you can skip this step.
- Create a directory where MPT3 and accompanying toolboxes will be installed to. Call the directory
tbxmanager for instance.
- Install tbxmanager, our new mechanism for installing and updating free Matlab toolboxes (make sure to properly configure Matlab if you are behind a proxy server):
- Install MPT3 and required toolboxes
tbxmanager install mpt mptdoc cddmex fourier glpkmex hysdel lcp yalmip sedumi espresso
- The path to all toolboxes can be set by issuing
It is recommended to store this command in the initialization file
startup.m because the path is set automatically everytime you start Matlab. Edit
startup.m and store the above line in there. If there is no file
startup.m, you can create one in the
mpt_init to initialize default settings for MPT3.
To update MPT3 and other installed toolboxes to their latest stable versions, run
Living on the bleeding edge
If you want to help us with testing development versions of MPT3, subscribe to the unstable repository:
tbxmanager source add http://www.tbxmanager.com/package/unstable.xml/mpt
from time to time to update your MPT3 installation to the latest development version.
If you don't require MPT anymore, you can save some disk space by uninstalling it:
tbxmanager uninstall mpt mptdoc cddmex fourier glpkmex hysdel lcp yalmip sedumi espresso
Manual installation without tbxmanager
If you for any reason cannot use
tbxmanager, you can install MPT3 and all required dependencies manually:
- Download latest versions of following packages (pick the correct download link for your operating system; prefer stable versions):
- Download the latest YALMIP release
- Unpack all downloaded archives to a directory (each archive will automatically create its own subdirectory)
- Set Matlab path to all subdirectories of the main directory created in the previous step
- Save your Matlab path for later use