% This script is provided "as is", and the authors are not responsible
% whatsoever for the outcomes of this script or any modification.		
% The usage of the script in any publication should be acknowledged by citing:
% Barbieri L, Luchinat E, "Monitoring Protein-Ligand Interactions in Human 
% Cells by Real-Time Quantitative In-Cell NMR using a High Cell Density 
% Bioreactor", Journal of Visualized Experiments.
% ---------------------------------------------------

% Cut spectral regions for MCR ALS and join them in a 'flat' 2D array
% A140
Spectra_A140 = Spectra(180:210,502:542,:);
Spectra_A140flat = (reshape(Spectra_A140,[],numel(input_file))).';

% N53
Spectra_N53 = Spectra(260:310,445:550,:);
Spectra_N53flat = (reshape(Spectra_N53,[],numel(input_file))).';

% G10
Spectra_G10 = Spectra(220:250,200:265,:);
Spectra_G10flat = (reshape(Spectra_G10,[],numel(input_file))).';

% V14
Spectra_V14 = Spectra(120:205,370:465,:);
Spectra_V14flat = (reshape(Spectra_V14,[],numel(input_file))).';

% Join together different spectral regions
JoinSpec_flat = [Spectra_A140flat Spectra_N53flat Spectra_G10flat Spectra_V14flat];
