Home > hfrc > matlab > utility > format4read.m

format4read

PURPOSE ^

FORMAT4READ - read format 4 CODAR total vector files

SYNOPSIS ^

function [data, date, origin, h] = format4read( fn, s )

DESCRIPTION ^

 FORMAT4READ - read format 4 CODAR total vector files

 Usage: [data, date, origin, header] = format4read( filename, structure )

 filename should be a string filename.  structure is a boolean: if true,
 returns a structure with data instead of a matrix.  Default is a structure.

 NOTE: If you read the function in as a matrix, it tends to have extra
 columns.  These columns are full of zeros and seem to be the result of
 a problem with textread.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: format4read.m,v 1.5 2003-04-02 01:00:45 dmk Exp $    

 Copyright (C) 2001 David M. Kaplan
 Licence: GPL

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003