What does ./ mean in matlab?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gauri Phatak
am 15 Jan. 2015
Kommentiert: Gauri Phatak
am 15 Jan. 2015
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
0 Kommentare
Akzeptierte Antwort
Mohammad Abouali
am 15 Jan. 2015
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!