SCM

SCM Repository

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

View of /SplineFitBATMAN_MATLABcode/readNMRdata.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 346 - (download) (annotate)
Tue Nov 11 03:01:17 2014 UTC (2 years, 4 months ago) by jie
File size: 348 byte(s)
matlab
function Data = readNMRdata(filedir)
% written 120213 Dr. Jie Hao, Imperial College London

fid = fopen(filedir,'r');
tLines = fgets(fid);
delimiter = sprintf('\t','');
numCols = numel(strfind(tLines,delimiter)) + 1;
FormatString=repmat('%f',1,numCols);
InputText=textscan(fid,FormatString,'delimiter','\n');
Data=cell2mat(InputText);
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