程序:P=[ 1 2 3 4; 2 3 4 5;4 5 6 7; 5 4 3 2];
T=[1 2 3;3 4 5;3 2 3 ; 2 4 5];
[Pn,minp,maxp,Tn,mint,maxt]=premnmx(P,T);
出现问题:
??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> premnmx at 105
tn = 2*(t-mint0*oneQ)./((maxt0-mint0)*oneQ) - 1;
Error in ==> mapminmax at 3
[Pn,minp,maxp,Tn,mint,maxt]=premnmx(P,T);
??? Error using ==> mtimes
MTIMES is not fully supported for integer classes. At least one input must be
scalar.
Error in ==> premnmx at 90
pn = 2*(p-minp0*oneQ)./((maxp0-minp0)*oneQ) - 1;
Error in ==> mapminmax at 26
[Pn,minp,maxp,Tn,mint,maxt]=premnmx(P1,T1)
万分感谢~后来自己也发现了。
顺便问你
e=y-T;
error=mse(e,net);
res(i)=norm(error);
网络误差是error吗?erroe是误差的均方,它的画图指令时什么?那res(i)是什么?norm()是什么意思?权值矩阵如何得到?