Thread Closed

how to get an input matrix from user???

 
Share Thread
Mar8-10, 09:37 AM   #1
 

how to get an input matrix from user???


WITHOUT using the MATLAB ‘MULTIPLICATION COMMAND’ write down your own program to implement the matrix multiplication M = A*B, where A and B are two constant matrices of dimensions l x m and m x n, respectively. The program should:
 Prompt the user to enter the dimensions l, m and n;
 Check if all the dimensions are positive integers and if this is not the case, ask the user to enter the values again; also to check whether multiplication is possible or not according the entered dimensions
 Prompt the user to enter the values of the two matrices;
 Apply matrix multiplication M = A * B and calculate the product M;
 Display the resultant matrix M [don’t use ‘;’ at end of statement in order to display].

PLZ help i m get stuck....
PhysOrg.com science news on PhysOrg.com

>> City-life changes blackbird personalities, study shows
>> Origins of 'The Hoff' crab revealed (w/ Video)
>> Older males make better fathers: Mature male beetles work harder, care less about female infidelity
Mar13-10, 04:40 PM   #2
 
Blog Entries: 1
Recognitions:
Gold Membership Gold Member
Homework Helper Homework Help
Science Advisor Science Advisor
What have you done so far?
Thread Closed

Similar discussions for: how to get an input matrix from user???
Thread Forum Replies
ANSI Std. C++ Looping Menu while checking user input Programming & Comp Sci 7
Record user input outside a program in c++. Programming & Comp Sci 0
matlab user input variable name Math & Science Software 1
Electrical and Computer Engineering, 2-input Look-Up tables designed with 2-input XOR Engineering, Comp Sci, & Technology Homework 0
Least squares Ridge Regression - how to do with solver that takes matrix input? Linear & Abstract Algebra 0