This is a static copy of a profile report

Home

makehgtform>matrixMultiply (Calls: 308, Time: 0.010 s)
Generated 16-Jul-2020 17:09:10 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/primitive/makehgtform.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makehgtformfunction308
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
283
end
197120.002 s16.5%
282
C(row,col) = C(row,col)+Arow(k...
197120.001 s11.9%
276
C = zeros(size(A,1),size(B,2))...
3080.001 s9.2%
279
Arow = A(row,:);
49280.001 s9.2%
284
end
49280.001 s7.9%
All other lines  0.005 s45.3%
Totals  0.010 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)2
Code lines (lines that can run)10
Code lines that did run10
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 274 
function C = matrixMultiply(A, B)
 275 

< 0.001 
    308 
 276
C = zeros(size(A,1),size(B,2)); 
< 0.001 
    308 
 277
for row = 1:size(A,1) 
< 0.001 
   1232 
 278
    for col = 1:size(B,2) 
< 0.001 
   4928 
 279
        Arow = A(row,:); 
< 0.001 
   4928 
 280
        Bcol = B(:,col); 
< 0.001 
   4928 
 281
        for k=1:length(Arow) 
  0.001 
  19712 
 282
           C(row,col) = C(row,col)+Arow(k)*Bcol(k); 
  0.002 
  19712 
 283
        end 
< 0.001 
   4928 
 284
    end 
< 0.001 
   1232 
 285
end