...
How to construct a rectangular matrix for a text file with 6012 rows and 2221 columns.
...
No sample input, no sample output, and no language preference stated. So I shall make a few assumptions -
(a) Your text file consists of numbers.
(b) The delimiter is a single space.
One way to do it with Perl:
After it is run, the perl script will have a 2-dimensional array @arr that has 5 elements (for 5 rows). Each element is itself a 4-element array (actually, a "reference" to an array). An individual "cell" could be accessed by the expression $arr[x][y], where x and y are array indexes starting with 0.
Hi,
I have an array variable "arr" that reads string from a file "vari.txt". Thus, the array will be of variable length depending how many entries are present in "vari.txt"
I use a for loop to traverse through the array.
However, i need a grep command to grep for a file "output.txt" and... (3 Replies)
Hello,
Actually I am not sure how to ask this question, which is about the technique advance on website construction/design. Compared with HTML/CSS, which ones are the most popular for website construction? My colleague recommends Drupal for Linux platform. Any other? Thanks!
Yifang (4 Replies)
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
I am trying to construct a regular expression that will filter a log file containing the following table:
aP
mP
mC,mI
oP
oC
oF
oI
tP
tI
hP
... (8 Replies)
Hi
I have to construct a rectangular matrix with 6012 rows and 2221 columns.
Here the rows and columns were given by alphanumeric ids in a file named row.txt and column.txt respectively. with this row nd column ids I have to construct a matrix ie 6012*2221 and compare the column ids with... (0 Replies)
Could someone please help, I am new to unix and I am trying to do the following:
o Each password must have at least eight characters.
Only the first eight characters are significant.
PASSLENGTH is found in /etc/default/passwd and is set
to 6.
... (1 Reply)