MATLAB and the MATLAB Symbolic Math Toolbox are required to run the following provided function. To run the code:

If you haven't already, unzip the archive containing the function.

Open MATLAB and navigate to the folder containing the extracted function.

In the command window run the following code:
doc SimSPMFeedback

Follow the instructions in the help file which opens after above line is executed.
