diff --git a/matRad_calcParticleDose.m b/matRad_calcParticleDose.m index 57caeb832..33a97ef89 100644 --- a/matRad_calcParticleDose.m +++ b/matRad_calcParticleDose.m @@ -328,7 +328,7 @@ % vectorize computations more efficiently than when % making this an outer loop for ctScen = 1:pln.multScen.numOfCtScen - if any(pln.multScen.scenMask(ctScen,:,:),'all') %We don't need it if no scenario for this ct scenario is relevant + if any(any(pln.multScen.scenMask(ctScen,:,:))) %We don't need it if no scenario for this ct scenario is relevant % precomputations for fine-sampling if strcmp(pbCalcMode, 'fineSampling') % compute radial distances relative to pencil beam