Installation and use of Matpower requires familiarity with the basic operation of Matlab or Octave. Make sure you follow the installation instructions for the version of Matpower you are installing. The process was simplified with an install script following version 6.0.
Clone the repository or download and extract the ZIP file of the Matpower distribution and place the resulting directory in the location of your choice and call it anything you like.21 We will use <MATPOWER> as a placeholder to denote the path to this directory (the one containing install_matpower.m). The files in <MATPOWER> should not need to be modified, so it is recommended that they be kept separate from your own code.
Open Matlab or Octave and change to the <MATPOWER> directory.
Run the installer and follow the directions to add the required directories to your Matlab or Octave path, by typing:
install_matpower
But, if you chose not to have the installer run the test suite for you in step 2, you can run it now to verify that Matpower is installed and functioning properly, by typing:22
test_matpower
The result should resemble the following, possibly including extra tests, depending on the availablility of optional packages, solvers and extras.