loadTime.m 428 B

123456789101112131415161718
  1. function [cax, cm]=loadTime(path,patientID)
  2. ofile=fullfile(path,patientID,sprintf('%s_Dummy.mcsv',patientID));
  3. opts = detectImportOptions(ofile,'FileType','text');
  4. try
  5. cma=readmatrix(ofile,opts);
  6. catch ME
  7. cma=dlmread(ofile,',',2,0);
  8. end
  9. %convert to seconds->multiply time by 1e-3 and value (integral/t) with 1e3
  10. cax=cma(:,1)*1e-3;
  11. %cay=ca(:,2)*1e3;
  12. cm=cma(:,2)*1e-3;
  13. end