MATLAB Performance Improvements
With vector-based processing, the program processes multiple samples during a single execution call to a System object™. Consider using vectors from roughly 366 to several thousand. The default is 3660, which represents 10 Ethernet packets. Use large vectors of data to minimize function call overhead.