MathWorks Interview Question

How would you optimize a MATLAB function to process large datasets efficiently?