Language: Matlab
Processor: Not Relevant
Licensed under a Creative Commons Attribution 3.0 Unported License
A lot of times, when I am running Matlab simulations I am comparing how close my results are to real measured data. It is always a good idea to prove that your DSP simulation is matching what happens in real life before trusting its accuracy. Below is a the equation for percent error, which I admittedly had to run a google search on before I made this function.