diff --git a/algorithms/@MR_spectroS/ExportLcmRaw.m b/algorithms/@MR_spectroS/ExportLcmRaw.m index 441e92699ae62489d87d04b8ccb6c244c94ad061..46991c0858be9f131f404d840eddac8e6f8ef70a 100644 --- a/algorithms/@MR_spectroS/ExportLcmRaw.m +++ b/algorithms/@MR_spectroS/ExportLcmRaw.m @@ -1,4 +1,4 @@ -function ExportLcmRaw(this, path, name, addSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak) +function ExportLcmRaw(this, path, name, addSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak, MC_mix) % Define the fileptath where the .RAW files will be saved if exist('path','var') @@ -26,6 +26,10 @@ if ~exist('scalingFactorRefPeak','var') scalingFactorRefPeak = 0.05; end +if ~exist('MC_mix','var') + MC_mix = 1; %1 = normal case, export spectra. 2 = export MC water +end + if exist('addSinglet','var') choice = addSinglet; if choice == true @@ -51,7 +55,7 @@ data = this.Data{1}; NMeas = size( data, this.meas_dim); % # Averages %NCha = size( data, this.coil_dim); % # Channels %NRep = size( data, this.dyn_dim); % # Repetitions -%NMix = size( data, this.mix_dim); % # Mixes +NMix = size( data, this.mix_dim); % # Mixes isAveraged = this.Parameter.ReconFlags.isAveraged; isMovingAveraged = this.Parameter.ReconFlags.isfMRSMovingAveraged; isISISAveraged = this.Parameter.ReconFlags.isISISAveraged; @@ -104,7 +108,7 @@ switch makeBasis metaboliteName = 'Leu'; end -dataExport = data(:,1,1,1,1,1,1,1,1,1,1,1); +dataExport = data(:,1,1,1,1,1,1,1,MC_mix,1,1,1); brukerFormat = true; ExportLCModelBasis(dataExport, dwellTime, scanFrequency, filepath, filename, metaboliteName, choice, ... brukerFormat, referencePeakPpm, scalingFactorRefPeak, makeBasis, TE, sequenceName) diff --git a/algorithms/@MR_spectroS/MR_spectroS.m b/algorithms/@MR_spectroS/MR_spectroS.m index 8ee92f78167c1f09f9e817e330b6ae730fdcdf2a..baeff2e699388978d2e13b08580f900ec6bff310 100644 --- a/algorithms/@MR_spectroS/MR_spectroS.m +++ b/algorithms/@MR_spectroS/MR_spectroS.m @@ -80,7 +80,7 @@ classdef MR_spectroS this = Filtering( this ); this = Truncate( this, truncPoint) this = RemoveFiltering( this ); - this = ExportLcmRaw( this, path, name, advoigdSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak); + this = ExportLcmRaw( this, path, name, advoigdSinglet, makeBasisExport, referencePeakPpm, scalingFactorRefPeak, MC_mix); this = ExportMruiText(this, path, name, nucleus); this = AverageData( this ); this = DeleteCoilChannels( this, coilChannels2Delete );