Hi Azadeh and Saida,
I tried executing all the code in the recent releases of MATLAB and am unable to reproduce the errors. This maybe something specific to your setup. Please contact technical support for further help:
I run MachineLearning.m on sample dataset bank-full.csv and got this error:
Default value is not a member of type "nntype.performance_fcn".
Error using nnetParamInfo (line 28)
Too many input arguments.
Error in patternnet>get_info (line 85)
info = nnfcnNetwork(mfilename,'Pattern Recognition Neural Network',fcnversion, ...
Error in patternnet (line 41)
if isempty(INFO), INFO = get_info; end
Error in NNfun (line 18)
net = patternnet(hiddenLayerSize);
Error in MachineLearning (line 191)
[~, net] = NNfun(XtrainNN,YtrainNN);