Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiplication of Matrix and vector

Status
Not open for further replies.

sanlight

Mechanical
Apr 25, 2007
11
0
0
US
Hello all,
I am new to mathcad, I have a matrix (ixj) and a vector (ix1). I need to multiply each ith row of the matrix and the vector. Eg. My first row is (2,6,1) and second row is (1,2,3) and vector is 2,1,3. My resultant matrix first row should be 4,6,3 and second row should be (2,2,9)...and so on.
Thanks a lot
 
Replies continue below

Recommended for you

Sorry, I didn't read your post carefully enough. You need to use indices, i:=0;2, j:=0;1

R[sub]i,j[/sub] = M[sub]i,j[/sub]*V[sub]i[/sub]


TTFN

FAQ731-376
 
You don't even need indices. If you have defined your matrix (A) and vector (V), just store your result in vector B=A*V. Thus, if A is (2x2) and V is (2x1) the resulting vector B is 2x1.
 
Status
Not open for further replies.
Back
Top