mirror of
https://github.com/jlengrand/LAFF.git
synced 2026-03-10 08:31:21 +00:00
16 lines
257 B
Matlab
Executable File
16 lines
257 B
Matlab
Executable File
function [ C_out ] = MatMatMult( A, B, C )
|
|
|
|
[ m, n ] = size( C );
|
|
[ m_A, k ] = size( A );
|
|
[ m_B, n_B ] = size( B );
|
|
|
|
for j = 1:n
|
|
for i = 1:m
|
|
for p = 1:k
|
|
C( i,j ) = A( i, p ) * B( p, j ) + C( i, j );
|
|
end
|
|
end
|
|
end
|
|
|
|
C_out = C;
|