solving exponential equation from a matrix values

조회 수: 2 (최근 30일)
PK
PK 2012년 9월 28일
for the equation 1/1+exp(-A)), A is a matrix of some length ex: A=[1 2 3 4 5] the equation is to be solved by taking every value from A and after that result is to be placed in another matrix, can some one help in finding a solution for this, the length of A is variable.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 9월 28일
A=[1 2 3 4 5];
out = 1./(1+exp(-A))
  댓글 수: 1
PK
PK 2012년 9월 28일
and with a constant incremental of +1 the out result is to be multiplied and stored in another matrix ex: A=[1 2 3 4 5] and W=4 so the result is to be as OUT=[1*W 2*(W+1) 3*(W+3) 4*(W+4) 5*(W+5)] addition to occur first and then multiplication can u help in this.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by