What does ./ mean in matlab?

7 ビュー (過去 30 日間)
Gauri Phatak
Gauri Phatak 2015 年 1 月 15 日
コメント済み: Gauri Phatak 2015 年 1 月 15 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by