matrix multiplication

March 09 2010 by wmyang 4
false
Maple

0


Hi everyone, I have question that i cannot solve.

The question is : 

Write a procedure named MULTIPLYMATRIX to find the product of an n x m matrix by an
m x q matrix. Your procedure should print the result matrix. The dimensions n, m, q should be
input parameters in your procedure. Test your procedure by demonstrating multiplication of a 2 x
3 with a 3 x 4 matrix of your choice.

 

How to create an n*m matrix? I mean I don't quite understand the question. Can we have an arbitrary number of rows and columns or we need to create a loop to fit into any possibilities?

And how to construct a multiplication for two matrix?

 

Thx

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account