Home > freetb4matlab > statistics > tblread.m

tblread

PURPOSE ^

% Read tabular data from an ascii file.

SYNOPSIS ^

function [data, varnames, casenames] = tblread (f='', d=' ')

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{data}, @var{varnames}, @var{casenames}] =} tblread (@var{filename})
% @deftypefnx {Function File} {[@var{data}, @var{varnames}, @var{casenames}] =} tblread (@var{filename}, @var{delimeter})
% Read tabular data from an ascii file.
%
% @var{data} is read from an ascii data file named @var{filename} with
% an optional @var{delimeter}.  The delimeter may be any single
% character or
% @itemize
% @item 'space' ' ' (default)
% @item 'tab' '\t'
% @item 'comma' ','
% @item 'semi' ';'
% @item 'bar' '|'
% @end itemize
%
% The @var{data} is read starting at cell (2,2) where the
% @var{varnames} form a char matrix from the first row (starting at
% (1,2)) vertically concatenated, and the @var{casenames} form a char
% matrix read from the first column (starting at (2,1)) vertically
% concatenated.
% @seealso{tblwrite, csv2cell, cell2csv}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003