Pergunta de entrevista da empresa MathWorks

How to speed up the matrix assembling process?