Hello,
From past few days I was trying to convert the attached text file to matrix. The text file includes characters and numbers, but I only want the numbers to be picked from the text file. For example, the text file reads:
No.1 >17.698 0.000 0.000 0.000 0.000 17.698 0.000 0.000 0.000 17.6980.000 0.000 17.698 0.000 0.000 0.000 0.000 0.000 0.000 0.00029.209No.2 >0.000 0.000 8.754 0.000 17.509 0.000 8.754 0.000 0.000 8.7540.000 0.000 8.754 0.000 0.000 0.000 0.000 0.000 0.000 0.00047.473No.3 >0.000 0.000 6.720 0.000 6.720 0.000 6.720 6.720 6.720 0.0000.000 0.000 6.720 0.000 0.000 0.000 0.000 0.000 0.000 0.00059.679
What is need is the matrix having 3 rows and 21 columns:
17.698 0.000 0.000 0.000 0.000 17.698 0.000 0.000 0.000 17.698 0.000 0.000 17.698 0.000 0.000 0.000 0.000 0.000 0.000 0.000 29.2090.000 0.000 8.754 0.000 17.509 0.000 8.754 0.000 0.000 8.754 0.000 0.000 8.754 0.000 0.000 0.000 0.000 0.000 0.000 0.000 47.4730.000 0.000 6.720 0.000 6.720 0.000 6.720 6.720 6.720 0.000 0.000 0.000 6.720 0.000 0.000 0.000 0.000 0.000 0.000 0.000 59.679
Best Answer