Matrix operation with equation.

1 回表示 (過去 30 日間)
mun1013
mun1013 2015 年 7 月 2 日
コメント済み: mun1013 2015 年 7 月 2 日
I have a matrix (5x1) I = [-6;-5;9;-7;-3]; How to perform calculation in MATLAB command window for each value in this matrix, the equation is A(I) = 1/(1+e^-I), where I = -6, -5, 9, -7, and -3. and return the answer in matrix form (5x1). Thanks.

採用された回答

Andrei Bobrov
Andrei Bobrov 2015 年 7 月 2 日
編集済み: Andrei Bobrov 2015 年 7 月 2 日
A = 1./(1+exp(-I));
  1 件のコメント
mun1013
mun1013 2015 年 7 月 2 日
Yeah, thanks a lot !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by