MATLAB: TrainAutoencoder function is undefined

#trainautoencoder#undefined

i tried to run this example in matlab2015a program .
http://www.mathworks.com/help/nnet/examples/training-a-deep-neural-network-for-digit-classification.html.
but there is an error in this commend (autoenc1 = trainAutoencoder(xTrainImages,hiddenSize1, ...) .the error is that the function trainAutoencoder is undefined. but i already have neural network toolbox .how can i fix this error this is a built in function but not found .

Best Answer

As stated at the bottom of its documentation page, the trainAutoencoder function was introduced in release R2015b. It did not exist in release R2015a. You will need to upgrade to release R2015b or later to use that function.