필터 지우기
필터 지우기

Could anyone help to covert the equation into matlab code

조회 수: 1 (최근 30일)
Barry Allen
Barry Allen 2020년 2월 27일
댓글: Barry Allen 2020년 2월 27일
How to convert this into code?
  댓글 수: 2
darova
darova 2020년 2월 27일
You can't convert it. YOu should write your own code
Did you try?
Barry Allen
Barry Allen 2020년 2월 27일
편집: Barry Allen 2020년 2월 27일
Yes
for i =2:N
x=1+((Pi(i).*yi(i))./1+sum(Pi*yi(3:N)));
result=log2(x);
y=sum(result);
end

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

채택된 답변

David Hill
David Hill 2020년 2월 27일
Not sure what arrays p and g should be.
B=sum(log(1+(p(2:n).*g(2:n))./(1+arrayfun(@(x)sum(x*g(3:n)),p(2:n))))/log(2));
  댓글 수: 7
Barry Allen
Barry Allen 2020년 2월 27일
Oh thanks bro!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by