To denoise an NMR signal using ResNet in Matlab, you can follow these steps:
load
function.main.m61 chars3 lines
main.m41 chars2 lines
main.m77 chars3 lines
resnet50
function in Matlab's Deep Learning Toolbox.main.m19 chars2 lines
main.m260 chars9 lines
prepareData
function.main.m46 chars2 lines
trainNetwork
function with the training data and options.main.m55 chars2 lines
main.m51 chars2 lines
Here is an example of the prepareData
function:
main.m123 chars7 lines
This function takes a signal vector as input and outputs a data set with the last dimension equal to 10, which represents the 10-sample window used to denoise the signal.
gistlibby LogSnag