Home > atmlab > gformat > gf_load.m

gf_load

PURPOSE ^

GF_LOAD Loads gformat data saved by *gf_save*

SYNOPSIS ^

function G = gf_load( file )

DESCRIPTION ^

 GF_LOAD   Loads gformat data saved by *gf_save*

 FORMAT   G = gf_load( file )
        
 OUT   G       Loaded data
 IN    file    Name of file to read.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

gf_load.m

SOURCE CODE ^

0001 % GF_LOAD   Loads gformat data saved by *gf_save*
0002 %
0003 % FORMAT   G = gf_load( file )
0004 %
0005 % OUT   G       Loaded data
0006 % IN    file    Name of file to read.
0007 
0008 % 2010-01-07   Created by Patrick Eriksson.
0009 
0010 function G = gf_load( file )
0011   
0012 
0013 G = loadvar( file, 'G' );
0014 
0015 
0016 if atmlab('STRICT_ASSERT') & ~isgformat( G )
0017   error( 'The file does not contain gformat data.' );
0018 end

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005