Hi Mathew,
You can refer to the below link which points to a similar question answered by MathWorks Support Team and go through attached document provided there in the answer.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!