matrixVectorMult - s = size(v); w = zeros(s(1), 1); for i =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function w = matrixVectorMult(L,v) % Multiply elements of v and L using scalar multiplication. Create w vector
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s = size(v); w = zeros(s(1), 1); for i = 1:s(1) for j = 1:s(1) w(i) = w(i) + L(i,j)*v(j); end end...
View Full Document

Ask a homework question - tutors are online