Results 1 to 11 of 11
Thread: help in matrix
- 03-10-2012, 05:41 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 20
- Rep Power
- 0
help in matrix
hello i hope you are all fine
if i want to do something in a each row every one separated
for example this matrix
3 4 5
2 1 3
6 3 1
i want to say if all elements of row >=3 put all elements of this row=0
we find in this example second row verify this condition
i want new matrix to be
3 4 5
0 0 0
6 3 1
i want this code please
thanks a lot
- 03-10-2012, 06:14 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 20
- Rep Power
- 0
Re: help in matrix
no help ?????
- 03-10-2012, 06:32 PM #3
Re: help in matrix
You would need some loops to do that. What code have you tried?
Post your code and show its output
or post the error messages you are getting.
- 03-10-2012, 07:20 PM #4
Member
- Join Date
- Oct 2010
- Posts
- 20
- Rep Power
- 0
- 03-10-2012, 07:25 PM #5
Re: help in matrix
Just post code to solve the posted example. Leave the rest of your code off.
Make a simple program that compiles and executes with a 2D array and some loops for solving the shown example.
- 03-10-2012, 08:39 PM #6
Member
- Join Date
- Oct 2010
- Posts
- 20
- Rep Power
- 0
- 03-10-2012, 08:45 PM #7
Re: help in matrix
You should hire a programmer if you want someone to write your code for you.
We'll help you get your code to work. We don't write code to solve peoples' problems.
You said:If that is true then this little bit of code will be much simpler.code iam working in is very complex
All it needs is some loops and if statements.
- 03-10-2012, 09:24 PM #8
Member
- Join Date
- Oct 2010
- Posts
- 20
- Rep Power
- 0
- 03-10-2012, 09:26 PM #9
Re: help in matrix
Then you have come to the wrong place.i dont care about learning
- 03-11-2012, 05:03 AM #10
Member
- Join Date
- Feb 2012
- Location
- Phoenix, AZ
- Posts
- 26
- Rep Power
- 0
Re: help in matrix
I'm unclear about the example output you've posted back in the original post. In your problem statement, you stated the following.
Don't you want the first row to be changed to 0's instead of the second row?i want to say if all elements of row >=3 put all elements of this row=0
- 03-11-2012, 07:32 AM #11
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: help in matrix
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Matrix
By awesom in forum New To JavaReplies: 9Last Post: 10-05-2011, 08:36 PM -
Help with dox matrix printer
By Albert in forum Advanced JavaReplies: 7Last Post: 09-06-2011, 08:50 AM -
Matrix class
By maz22 in forum New To JavaReplies: 5Last Post: 10-15-2010, 06:53 AM -
help in matrix
By Engineer in forum New To JavaReplies: 7Last Post: 10-06-2010, 01:26 PM -
Help with matrix
By susan in forum New To JavaReplies: 1Last Post: 08-07-2007, 04:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
.gif)

Bookmarks