Matrix Concatenation and Storing useful information
- From: "Nishant" <nishantxl@xxxxxxxxxxxxxx>
- Date: 25 Sep 2005 18:54:37 -0700
hello friends,
I wish to concatenate a matrix horizontally and store
useful information in form of ID so that I can recall it and get that
information.
GIVEN INPUT
MATRIX of form AB[]
A B C
6 9 1
7 8 2
2 3 2
5 10 3
1 4 3
11 13 6
14 15 6
12 16 6
REQUIRED OUTPUT
for given matrix I wish to form a matrix AJ[]
N A B C
10 6 9 1
11 7 8 2
12 2 3 2
13 5 10 3
14 1 4 3
15 11 13 6
16 14 15 6
0 12 16 6
Notice here the Ist column titled N is formed using a previously
defined number which is 9 in my example and hence N starts with 10 and
increments by 1 for every other N element.
I wish to display the information stored in the given matrix in form of
ID.
as in Ist row shows 6 and 9 forms 10
7 and 8 forms 11
and so on ..
but the problem lies in when it says 5 and 10 form 13.
I want it to show that 5 and (6,9) forms 13.
due to previously defined max no 9
and so on
Second Part of Storing information:
Apart from that I need the program to
display C value for all the elements of column marked N, A and B
individually.
Looking forward to your guidance
Nishant
.
- Follow-Ups:
- Re: Matrix Concatenation and Storing useful information
- From: Nishant
- Re: Matrix Concatenation and Storing useful information
- Prev by Date: Matrix Concatenation and Storing useful information
- Next by Date: Re: Matrix Concatenation and Storing useful information
- Previous by thread: Matrix Concatenation and Storing useful information
- Next by thread: Re: Matrix Concatenation and Storing useful information
- Index(es):
Relevant Pages
|