+ Reply to Thread
Results 1 to 4 of 4

Matrix Multiplication in VBA and storing values in another matrix

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    Wroclaw
    MS-Off Ver
    2010
    Posts
    2

    Talking Matrix Multiplication in VBA and storing values in another matrix

    Hello,

    I struggle with the multiplication of two matrices. I cannot plot any result of the new matrix.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Matrix Multiplication in VBA and storing values in another matrix

    Hi,

    MMULT (MACIERZ.ILOCZYN in Polish) following Office help:
    Zwraca iloczyn macierzowy dwóch tablic. Wynik jest tablicą o takiej samej liczbie wierszy jak tablica1 i takiej samej liczbie kolumn jak tablica2.


    Your ArrC is defined as
    Please Login or Register  to view this content.
    so 1 row only

    and ArrW as
    Please Login or Register  to view this content.
    - 1 column only

    so result of
    Please Login or Register  to view this content.
    will be 1 row x 1 column (scalar value)

    Are you aware of that?

    May be - yes, because you try to assign result to scalar (single element of 2d table) here:
    Please Login or Register  to view this content.
    But as we see code only and no data (sample workbook) we (or at least myself) cannot say anything more :-)
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-15-2017
    Location
    Wroclaw
    MS-Off Ver
    2010
    Posts
    2

    Re: Matrix Multiplication in VBA and storing values in another matrix

    Kaper,

    thank you for your engagement and remarks. I agree with your that a file says more than 1000 words. link removed - please attach here, as requested

    Thanks to your explicit remarks I figured out my error! Sometimes you have to hear/read something that is obvious to be able to awake. Thank you for that!!!

    Kind regards
    anwid
    Last edited by AliGW; 04-06-2018 at 06:27 AM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Matrix Multiplication in VBA and storing values in another matrix

    Please follow our standard way to attach files to forum posts. My network restrictions do not allow me to open files from
    ufile dot io
    server

    ---
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 11-05-2014, 03:41 AM
  2. multiplication of matrix A and B
    By tjsdndnjs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2012, 04:00 AM
  3. Matrix row multiplication
    By gompka in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2010, 03:29 AM
  4. [SOLVED] matrix multiplication
    By Daniel CHEN in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  5. matrix multiplication
    By Carine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. [SOLVED] matrix multiplication
    By Daniel CHEN in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  7. matrix multiplication
    By Carine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

Tags for this Thread

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