Site hosted by Angelfire.com: Build your free website today!

loadhr

PURPOSE ^

loadhr(inputmatfilename,SheetNo,VariableName);

SYNOPSIS ^

function loadhr(inputmatfilename,SheetNo,VariableName);

DESCRIPTION ^

 loadhr(inputmatfilename,SheetNo,VariableName);
 To load MAT or REZA'S style DAT file, TAB or SAPCE Delimited ASCII FILES, EXCEL FILES
 To Load Excel File
    SheetNo Can be SheetNo (number) or SheetName (character)
    loadhr(inputmatfilename,SheetNo,VariableName);
    loadhr('book1a.xls',3,'man'); % when there is no legend/label
    loadhr('book1a.xls','man'); % Sheet = 1 and when  there is no legend/label
    loadhr('book1a.xls',2); % Sheet = 2 and if there is no legend/label, VariableName = 'rdata'
    loadhr('book1a.xls');  % Sheet = 1 and VariableName = filename%'rdata'
    loadhr('book1a.xls','rezay','miku');  % Sheet = 'rezay' and VariableName = 'miku'
    loadhr('book1a.xls','rezay');  % Sheet = 'rezay' and VariableName = filename%'rdata'
    if legend/label is present, giving VariableName does not change the label/legend name

 To load ASCII DAT or TXT file, containing ONLY Numeric data (of same row index)
    Can be TAB or SPACE delimited, NO HEADER, SAME SIZE, MATLAB DEFAULT, LOAD AS SINGLE VARIABLE ONLY
    loadhr(inputmatfilename,VariableName);
    loadhr('Book1datax.dat')
    loadhr('Book1datax.dat','man') % when there is no legend/label/header
    loadhr('Book1txt1.txt')
    loadhr('Book1datax.txt','man') % when there is no legend/label/header

 To load TAB delimited ASCII DAT or TXT file, (Numeric data with or without Header Legend)
    TAB delimited ONLY
    DATA Can be of different row index, more general case
    If no header is found, data are loaded as col1, col2, col3 etc. variablenames
    If no header but same row index, it loads as a single variable rdata, if no VariableName is given (same as previous)
    loadhr(inputmatfilename);
    loadhr('Book1txt1.txt')
    loadhr('Book1datax.dat')

 To Load Reza's style DAT file
    Load variables using the following format
    Var1
    Value of Var1
    Var2
    Value of Var2
    %%%%%
    %%%%%
    Comment of DATA FILE
    [last three lines above are optional]
    See Also, asciirmpost
    Modification:
    Only between % and % will be read
    There can not be any blank line before the variable name or value starts
    However, if % character is found, the rest is ignored

 Created by Md Rezaul Karim
 Copyright, kalosada@gmail.com; November 22, 2004

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004