tic %starts a stopwatch A = rand(12000,4400); B = rand(12000,4400); toc %Calculates and displays elapsed time from tic in seconds