getting error "Undefined function or method 'logistic' for input arguments of type 'double'.""
이전 댓글 표시
I have written a code based on neural network and when I ma trying to run code getting error as "Undefined function or method 'logistic' for input arguments of type 'double'" I have given the portion of code where getting error.
double logistic(x)
if(x > 100.0)
x = 1.0;
else if (x < -100.0)
x = 0.0;
else x = 1.0/(1.0+exp(-x));
x;
end
end
function [V_OUT]= feed_forward_signals(MAT_INOUT, V_IN, V_OUT, V_BIAS, size1, size2, layer)
for row = 1:size2
V_OUT(row)=0;
for col = 1:size1
V_OUT(row)=V_OUT(row)+MAT_INOUT(row,col)*V_IN(col);
end
V_OUT(row)=V_OUT(row)+V_BIAS(row);
end
if(layer==0)
V_OUT(row) = tanh(V_OUT(row));
end
if(layer==1)
V_OUT(row) = logistic(V_OUT(row));
please help
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Define Shallow Neural Network Architectures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!