+ Reply to Thread
Results 1 to 2 of 2

Help multiplying a vector through a matrix

  1. #1
    Registered User
    Join Date
    03-20-2008
    Posts
    1

    Help multiplying a vector through a matrix

    Hi. So say I have a 4x4 matrix in Excel occupying cells A1-D4. Then I have a 4x1 vector in A11-14. I want to multiply the matrix into the vector such that A1 is multiplied by A11*A11, A2=A2*A11*A12, A3=A3*A11*A13...B1=B1*A12*A11...D4=D4*A13*A13

    If that doesn't make sense, the diagonals of the matrix are multiplied by the corresponding element in the vector twice and the (i,j) element of the matrix is multiplied by the ith and the jth element of the vector.

    Can someone please tell me how to easily do this in Excel? This is pretty easy if the matrices are small, but I need to do it for like a 100x100 matrix, so I obviously can't do it manually. Any help?

    Thanks a lot!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612
    Lookup the MMULT function in help. E.g.: for a product in cells H1:H4, select the cells (H1:H4), then with the cells selected, type:
    Please Login or Register  to view this content.
    Press Ctrl+Shift+Enter to accept the formula
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1