![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
matlab 感知器问题
1个回答
展开全部
clear;clc;
X=[-0.5 -0.5 0.3 0;-0.5 0.5 -0.5 1];
T=[1 1 0 0 ];
net=newp(minmax(X),1);
A=sim(net,X);
net.trainParam.epochs=25;
net=train(net,X,T);
W=net.iw{1,1}
B=net.b{1}
A=sim(net,X);
figure(1)
V=[-2 2 -2 2];
plotpv(X,T,V);
axis('equal'),
title('Input Vector Craph'),
xlabel('xp1'),ylabel('xp2'),
plotpc(W,B);
X=[-0.5 -0.5 0.3 0;-0.5 0.5 -0.5 1];
T=[1 1 0 0 ];
net=newp(minmax(X),1);
A=sim(net,X);
net.trainParam.epochs=25;
net=train(net,X,T);
W=net.iw{1,1}
B=net.b{1}
A=sim(net,X);
figure(1)
V=[-2 2 -2 2];
plotpv(X,T,V);
axis('equal'),
title('Input Vector Craph'),
xlabel('xp1'),ylabel('xp2'),
plotpc(W,B);
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询