Matrix Concatenation and Storing useful information



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

.



Relevant Pages

  • Matrix Concatenation and Storing useful information
    ... useful information in form of ID so that I can recall it and get that ... REQUIRED OUTPUT ... display C value for all the elements of column marked N, ...
    (comp.soft-sys.matlab)
  • Matrix Concatenation and Storing useful information
    ... useful information in form of ID so that I can recall it and get that ... REQUIRED OUTPUT ... display C value for all the elements of column marked N, ...
    (sci.stat.math)
  • Re: Calculating a programs run time
    ... I'm trying to get my program provide useful information about ... > What are the relevant commands for me to look up? ... I sometimes put a display routine into a program to report ... or how many iterations of the main significant procedure have been done ...
    (comp.lang.fortran)
  • Re: Maverick info please
    ... wheel shot essentially has a bug; It needed a third switch there as I ... If you are buying it to play yourself skip it and if your buying it to sell ... If I recall the display that came in the game was a cherry, ...
    (rec.games.pinball)
  • Kirts Old but Menu Bar
    ... >the settings I was able to reset that corrected this? ... way to reset the display. ... I just cannot recall how I did ...
    (microsoft.public.windows.mediacenter)