MathWorks interview question

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