I am porting code from Matlab to Java. And being entirely unfamiliar with Matlab I am not sure what this "./" operator means in Matlab. Found in this function generated in matlab neural network code.
if true
%code
% Sigmoid Symmetric Transfer Function
function a = tansig_apply(n)
a = 2 ./ (1 + exp(-2*n)) - 1;
end
end

 채택된 답변

Mohammad Abouali
Mohammad Abouali 2015년 1월 15일

2 개 추천

look at redivide().
From MATLAB HELP: x = A./B divides each element of A by the corresponding element of B. Inputs A and B must have the same size unless one is a scalar value. A scalar value is expanded into an array of the same size as the other input.

댓글 수: 1

Gauri Phatak
Gauri Phatak 2015년 1월 15일
Thanks for the answer. much appreciated!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

질문:

2015년 1월 15일

댓글:

2015년 1월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by