11-05-2011
I tried but the output is not exactly what i'm searching for..The code gives me an output with: two identical matrix with the common elements between the two files and a third matrix that put together the first matrix elements plus the second matrix elements...I desire an output showing me only the differences between the two matrix column by column..anyway thank you so much!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have two tab separated files;
file1:
S.No ddi fi cu o/l t+ t-
1 0.5 0.6 o 0.1 0.2
2 0.2 0.3 l 0.3 0.4
3 0.5 0.8 l 0.1 0.6
... (5 Replies)
Discussion started by: vasanth.vadalur
5 Replies
2. Shell Programming and Scripting
I am trying to match 4 colums (first_name,last_name,dob,ssn) between 2 files and when there is an exact match I need to write out these matches to a new file with a combination of fields from file1 and file2. I've managed to come up with a way to match these 2 files based on the columns (see below)... (7 Replies)
Discussion started by: ambroze
7 Replies
3. Shell Programming and Scripting
Hey,
I have two files that have exactly the same format. They are both tab-delimited and contain 12 columns. However the # of rows vary. What I want to do is match columns # 5,6 and 7 between the two files. If they do match exactly (based on numbers) then I want the whole row from file 2 to... (1 Reply)
Discussion started by: phil_heath
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I want to extract columns from file2 to file3 by matching ids between file1 and file2. The extracted columns should be in same order as file1 ids.
for example:
file1.txt
1823
607
R2A9
802
771
file2.txt
1823 1 2 4
22 11 4 29
607 12 3 3
R2A9... (8 Replies)
Discussion started by: ryan9011
8 Replies
5. Shell Programming and Scripting
Hello,
I have two files as following:
#bin chrom chromStart chromEnd name score strand observed
585 chr2 29442 29443 rs4637157 0 + C/T
585 chr2 33011 33012 rs13423995 0 + A/G
585 chr2 34502 34503 rs13386087 0 + ... (2 Replies)
Discussion started by: Homa
2 Replies
6. Shell Programming and Scripting
Hi!
I need to merge two files when col1 (x:x:x) matching and adds second column from file1.txt.
# cat 1.txt
aaa;a12
bbb;b13
ccc;c33
ddd;d55
eee;e11
# cat 2.txt
bbb;b55;34444;d55
aaa;a15;35666;a44
I try with this awk and I get succesfully first column from 1.txt:
# awk -F";"... (2 Replies)
Discussion started by: fhluque
2 Replies
7. Shell Programming and Scripting
Hi,
I need to join two files together with one common value in a column. I think I can use awk or join or a combination but I can't quite get it.
Basically my data looks like this, with the TICKER columns matching up in each file
File1
TICKER,column 1, column, 2, column, 3, column 4
... (6 Replies)
Discussion started by: unkleruckus
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am facing issues while accomplishing below task.
We have two files Test1.txt and Test2.txt. We have to match 1st column of Test1.txt file with 2nd column of Test2.txt and then merge 2nd file with the 1st file. In the output we should select column 1 and 2 from the 1st file and column 1... (5 Replies)
Discussion started by: Prathmesh
5 Replies
9. Shell Programming and Scripting
Hi All,
I am looking to join two files where column 1 of file A matches with column 1 of file B and column 5 of files A matches with column 2 of file B. After joining the files based on above condition, out should contain entire line of file A and column 3, 4 and 5 of file B.
Here is sample... (8 Replies)
Discussion started by: angshuman
8 Replies
10. UNIX for Beginners Questions & Answers
Hi,
i have 2 files , the data i need to match is in masterfile and i need to pull out column 3 from master if column 1 and 2 match and output entire row to new file
I have tried with join and awk and i keep getting blank outputs or same file
is there an easier way than what i am... (4 Replies)
Discussion started by: axis88
4 Replies
LEARN ABOUT REDHAT
glloadmatrixf
GLLOADMATRIX(3G) GLLOADMATRIX(3G)
NAME
glLoadMatrixd, glLoadMatrixf - replace the current matrix with the specified matrix
C SPECIFICATION
void glLoadMatrixd( const GLdouble *m )
void glLoadMatrixf( const GLfloat *m )
PARAMETERS
m Specifies a pointer to 16 consecutive values, which are used as the elements of a 4x4 column-major matrix.
DESCRIPTION
glLoadMatrix replaces the current matrix with the one whose elements are specified by m. The current matrix is the projection matrix, mod-
elview matrix, or texture matrix, depending on the current matrix mode (see glMatrixMode).
The current matrix, M, defines a transformation of coordinates. For instance, assume M refers to the modelview matrix. If
v=(v[0],v[1],v[2],v[3]) is the set of object coordinates of a vertex, and m points to an array of 16 single- or double-precision floating-
point values m[0],m[1],...,m[15], then the modelview transformation M(v) does the following:
m[0] m[4] m[8] m[12] v[0]
M(v)=(m[1] m[5] m[9] m[13])x(v[1])
m[2] m[6] m[10] m[14] v[2]
m[3] m[7] m[11] m[15] v[3]
Where ``x'' denotes matrix multiplication.
Projection and texture transformations are similarly defined.
NOTES
While the elements of the matrix may be specified with single or double precision, the GL implementation may store or operate on these val-
ues in less than single precision.
ERRORS
GL_INVALID_OPERATION is generated if glLoadMatrix is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_MATRIX_MODE
glGet with argument GL_COLOR_MATRIX
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX
SEE ALSO
glLoadIdentity(3G), glMatrixMode(3G), glMultMatrix(3G), glPushMatrix(3G)
GLLOADMATRIX(3G)