www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReadEntireDelimitedFileExample.m

    %% Read Entire Delimited File
% Read the sample file, |count.dat|.

% Copyright 2015 The MathWorks, Inc.

M = dlmread('count.dat')
%%
% |dlmread| detects the delimiter from the file and returns a matrix.