loadTime.m 362 B

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