Performance improvements can help you achieve real-time execution. These adjustments suggest ways you can improve the performance of your SDR algorithm.
With vector-based processing, the MATLAB® program processes multiple samples during a single execution call to a System object™.
Consider using large vectors of size 1000 and up. The default is 20000.
Use large vectors of data to minimize function call overhead.
You can accelerate your MATLAB algorithms by generating a MEX function using the
function codegen
.
This command generates the MEX file yourSDRExMex
from
the function yourSDRExample
:
codegen yourSDRExample -args {ones(10,1)} -o yourSDRExMex ... -g -launchreport
codegen
(MATLAB Coder)