This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

MATLAB Performance Improvements

Performance improvements can help you achieve real-time execution. These adjustments suggest ways you can improve the performance of your SDR algorithm.

Vector-Based Processing

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 3660.

  • Use large vectors of data to minimize function call overhead.

C Code Generation from MATLAB

You can accelerate your MATLAB algorithms by generating a MEX function using the MATLAB Coder™ function codegen.

This command generates the MEX file yourSDRExMex from the function yourSDRExample:

codegen yourSDRExample -args {ones(10,1)} -o yourSDRExMex ...
        -g -launchreport

See Also