dlmread
Read an array from a file containing numeric data with the numbers separated by the specified delimiting character.
(u)=dlmread(file, delimiter, begrow,begcol)
(u)=dlmread(file, delimiter, range)
Inputs
file The name of the file.
delimiter The character to be used as the separator, e.g. ";".
begrow The (zero-based) index of the first row to read.
begcol The (zero-based) index of the first column to read.
range The (zero-based) range of the data to read, either is four integers in the form [begrow, begcol, endrow, endcol] , or as spreadsheet-like indices in a string of the form A1BB2 , that is, with columns specfied in by letters [A B ...AA AB AC ...] and rows specified by numbers.
Outputs
u The array read from the given file.


Example
>>showfile('dlmtest.d')
#skip
2;3;4;20
5;6;7;50
8;9;10;81
40;41;390.e2;-91
.9826e-2;9;10.34;81
88;99;102;81.536
>>a=dlmread('dlmtest.d',';',1,0)
>>a
Scaled by 10^5
         0         0         0    0.0002
    0.0001    0.0001    0.0001    0.0005
    0.0001    0.0001    0.0001    0.0008
    0.0004    0.0004    0.3900   -0.0009
         0    0.0001    0.0001    0.0008
    0.0009    0.0010    0.0010    0.0008

>>format medium e
>>a
Columns 1 through 3
      2.0000e+000      3.0000e+000      4.0000e+000
      5.0000e+000      6.0000e+000      7.0000e+000
      8.0000e+000      9.0000e+000     10.0000e+000
      4.0000e+001      4.1000e+001      3.9000e+004
      9.8260e-003      9.0000e+000      1.0340e+001
      8.8000e+001      9.9000e+001      1.0200e+002
Column 4
      2.0000e+001
      5.0000e+001
      8.1000e+001
     -9.1000e+001
      8.1000e+001
      8.1536e+001

>>b=dlmread('dlmtest.d',';','A2C5')
>>b
          2          3          4
          5          6          7
          8          9         10
         40         41      39000