> 数学 >
x=0:100 y=1/(1+exp(x)) plot(x,y)
出现错误 Matrix dimensions must agree.
人气:100 ℃ 时间:2020-06-07 02:39:50
解答
这是因为exp(x)是一个向量,不能直接进行求倒数的运算若该为y=1./(1+exp(x))即可,注意点除与除的区别
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版