[alphabet,targets]=prprob; % Character recognition problem definition
S1=10; % 定义隐层神经元数目
[R, Q]= size(alphabet); % 获取输入变量数
[S2,Q]=size(targets); % 获取输出变量数
P=alphabet; % P为输入矩阵
net= newff(minmax(P),[S1 S2],{'logsig' 'logsig'},'traingdx'); % 生成BP网络
net.LW{2,1}= net.LW{2,1}*0.01; % 调整输出层权值
net.b{2}= net.b{2}*0.01;
1