Matrix operation with equation.

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.

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 2 de Jul. de 2015
Editada: Andrei Bobrov el 2 de Jul. de 2015
A = 1./(1+exp(-I));

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Jul. de 2015

Comentada:

el 2 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by