merge_beamlets.m 426 B

123456789101112131415
  1. function B = merge_beamlets(num_batches)
  2. num_batches = 2;
  3. B = [];
  4. for k = 1:num_batches
  5. batch_doses = read_ryan_beamlets(['C:\010-work\003-localGit\WiscPlan\WiscPlanPhotonkV125\PatientData\batch_dose' num2str(k-1) '.bin']);
  6. B = [B batch_doses];
  7. end
  8. for k = 1:numel(B)
  9. B{k}.num = k-1;
  10. end
  11. write_ryan_beamlets('C:\010-work\003-localGit\WiscPlan\WiscPlanPhotonkV125\PatientData\batch_dose.bin',B);