From: Jan Simon on 10 Feb 2010 17:37 Dear Devin! > I have a matrix with a few thousand rows that looks like this: > r210_4_1_80.txt 2.61 0.06 16.94 0.3079 > I want: > 210 4 1 2.6100 0.0600 16.9400 0.3079 Is the matrix you have a CHAR matrix? Perhaps this helps: Str = 'r210_4_1_80.txt 2.61 0.06 16.94 0.3079' A = sscanf(Str, 'r%d_%d_%d_%d.txt %f %f %f %f') Kind regards, Jan
|
Pages: 1 Prev: using regexprep without "uppers" Next: how to know if I have a certain toolbox? |