필터 지우기
필터 지우기

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 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