rfp.m 403 B

123456789101112
  1. function [globalPar, cPars]=rfp(path,patientID,nclass,realizationId)
  2. code=sprintf('%s_%d_%d_IVF',patientID,nclass,realizationId);
  3. ofile=fullfile(path,patientID,sprintf('%s_fitParFinal.txt',code));
  4. try
  5. mat=readmatrix(ofile,'Delimiter','\t');
  6. catch ME
  7. mat=dlmread(ofile,'\t')
  8. end
  9. globalPar=[mat(2:5) 0 0 0];
  10. qfit=mat(6:end);
  11. cPars=reshape(qfit,[],nclass)';
  12. end