SCM

SCM Repository

[batman] Annotation of /SplineFitBATMAN_MATLABcode/readNMRdata.m
ViewVC logotype

Annotation of /SplineFitBATMAN_MATLABcode/readNMRdata.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346 - (view) (download)

1 : jie 346 function Data = readNMRdata(filedir)
2 :     % written 120213 Dr. Jie Hao, Imperial College London
3 :    
4 :     fid = fopen(filedir,'r');
5 :     tLines = fgets(fid);
6 :     delimiter = sprintf('\t','');
7 :     numCols = numel(strfind(tLines,delimiter)) + 1;
8 :     FormatString=repmat('%f',1,numCols);
9 :     InputText=textscan(fid,FormatString,'delimiter','\n');
10 :     Data=cell2mat(InputText);
11 :     fclose(fid);

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge