Matrix operation with equation.

1 次查看(过去 30 天)
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));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by