Permalink
Browse files

fixed repeated variable declaration in the inner for-loop

  • Loading branch information...
adityaapte committed Jan 31, 2018
1 parent 20849f7 commit e71a494679322d395f6bfe536cecb09ef94f59dd
Showing with 2 additions and 2 deletions.
  1. +2 −2 IMRTP/recompDose/MC/generateDPMInfluence.m
@@ -335,8 +335,8 @@
end
%-----------Insert dose data into correct beamlet indices---------------------%
for i = 1 : length(structROIV)
beamlet = createIMBeamlet(doseM(scanIndV{i}), scanIndV{i}, beamIndex, 0);
for iStruct = 1 : length(structROIV)
beamlet = createIMBeamlet(doseM(scanIndV{iStruct}), scanIndV{iStruct}, beamIndex, 0);
if isempty(IM.beams(beamIndex).beamlets)
IM.beams(beamIndex).beamlets = beamlet;
else

0 comments on commit e71a494

Please sign in to comment.