To convert NMR sequences into wavelet coefficients, use the MATLAB function wavedec()
that performs a multilevel 1-D wavelet decomposition on the signal. Then use the obtained coefficients as input to a CNN in MATLAB.
Here is a sample code for preparing wavelet coefficients as input data for CNN and storing it for each NMR dataset:
main.m881 chars25 lines
Similarly, you can prepare clean NMR sequences coefficients as output data for CNN by reading the clean data, performing wavelet transformation for each sequence, and then storing the coefficients.
main.m882 chars24 lines
Now you can use input and output coefficients matrices as inputs for your CNN in MATLAB.
gistlibby LogSnag