954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

I need help with matrix....please!!!

:?: I got this far....but its not giving me the required output....can you give me some directions....here are my codes....thanks....please refer to my pdf file for the question.
//import java.lang.*;
import java.math.*;
import java.io.*;
class MatMulti extends Thread
{
static int in1[][];
static int in2[][];
static int out[][];
static int n=2;
int row;
MatMulti(int i)
{
row=i;
this.start();
}
public void run()
{
int i,j;
for(i=0;i

Attachments assignment2.pdf (32.5KB)
rush88
Newbie Poster
2 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

Tell us what it is you think you need to do with this code, and try to solve it yourself. you should just put the small snippet of code that shows how you would like to solve the problem, then we can help you.

Also, put your code within [ CODE ] [ / CODE ] tags. Otherwise it is hard to help you.


Ed

cosi
Junior Poster
153 posts since Aug 2004
Reputation Points: 17
Solved Threads: 1
 

Tell us what it is you think you need to do with this code, and try to solve it yourself. you should just put the small snippet of code that shows how you would like to solve the problem, then we can help you.

Also, put your code within [ CODE ] [ / CODE ] tags. Otherwise it is hard to help you.

Ed


hello ED!!
If you refer to my pdf file.....thats the out put i want
firstly the size of matrix...then input first matrix by user using dialog box and so on......but the output is displayed on command prompt
eg:
Matrix A:
1.0 2.0 3.0
4.0 5.0 6.0

Matrix B:
7.0 8.0 9.0
0.0 9.0 8.0
7.0 6.0 5.0

Product of Matrix A and B
28.0 44.0 40.0
70.0 113.0 106.0

thanks
Rashil

rush88
Newbie Poster
2 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

I don't want to solve your homework for you. Start thinking about how you will solve it and post your ideas/code snippets/pseudocode here. Then people will help you.


Ed

cosi
Junior Poster
153 posts since Aug 2004
Reputation Points: 17
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You