diff --git a/fit/basissets/3T/philips/unedited/press/30/basis_philips_press30.mat b/fit/basissets/3T/philips/unedited/press/30/basis_philips_press30.mat index 68be3cd8..44b690e4 100644 Binary files a/fit/basissets/3T/philips/unedited/press/30/basis_philips_press30.mat and b/fit/basissets/3T/philips/unedited/press/30/basis_philips_press30.mat differ diff --git a/libraries/FID-A/fitTools/fit_plotBasis.m b/libraries/FID-A/fitTools/fit_plotBasis.m index 6459582d..fb881a80 100644 --- a/libraries/FID-A/fitTools/fit_plotBasis.m +++ b/libraries/FID-A/fitTools/fit_plotBasis.m @@ -52,6 +52,11 @@ end end +% Recalcualte spectra if they are not yet included +if ~isfield(basisSet,'specs') + [basisSet]=osp_recalculate_basis_specs(basisSet) +end + % Generate a new figure and keep the handle memorized out = figure; % Prepare a couple of useful variables @@ -78,7 +83,7 @@ if stagFlag % Staggered plots will be in all black and separated by the mean of the % maximum across all spectra - stag = mean(max(real(basisSet.specs(:,:,dim)))); + stag = mean(max(real(basisSet.specs(basisSet.ppm > ppmmin & basisSet.ppm < ppmmax,:,dim)))); % Loop over all basis functions hold on