MATLAB: How to normalize data between 0 and 1 ? I want to use logsig…

data normalizationdata process functionneural network

All is in the question: I want to use logsig as a transfer function for the hidden neurones so I have to normalize data between 0 and 1. The mapminmax function in NN tool box normalize data between -1 and 1 so it does not correspond to what I'm looking for.

Best Answer

bla = 100.*randn(1,10)
norm_data = (bla - min(bla)) / ( max(bla) - min(bla) )