i=-5:0.01:5;
y=1./(1+exp(-i));
g = (1-y).*y;
plot(i,g);
print(gcf,’-dpng’,‘dsigmoid.png’);
pwd
保存matlab plot后的图像
最新推荐文章于 2023-12-30 17:46:47 发布
i=-5:0.01:5;
y=1./(1+exp(-i));
g = (1-y).*y;
plot(i,g);
print(gcf,’-dpng’,‘dsigmoid.png’);
pwd