Filter löschen
Filter löschen

Matrix operation with equation.

1 Ansicht (letzte 30 Tage)
mun1013
mun1013 am 2 Jul. 2015
Kommentiert: mun1013 am 2 Jul. 2015
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.

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 2 Jul. 2015
Bearbeitet: Andrei Bobrov am 2 Jul. 2015
A = 1./(1+exp(-I));

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays 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!

Translated by