how to write this equation
Show older comments

6 Comments
Is this a duplicate question or are you looking for answers to both questions?
Sultan Al Harthy
on 24 Mar 2020
Sultan Al Harthy
on 24 Mar 2020
Ok, I just wanted to make sure the two questions with the same title weren't a mistake.
No need to email me. I generally don't respond to emails from my profile. If you have details to add, edit your question and add them there.
What part are you having trouble with? How far are you in converting this to Matlab code? You'll need to give it a shot first.
Sultan Al Harthy
on 24 Mar 2020
Sultan Al Harthy
on 24 Mar 2020
Answers (1)
David Hill
on 24 Mar 2020
Assuming p and m arrays previously established and e,B, and K are scalar.
R=B/2*log2([((1-e)*p(1:K-1)+m(1:K-1))./(p(2:K)-e*p(1:K-1)+m(1:K-1)),((1-e)*p(K)+m(K))/(-e*p(K)+m(K))]);
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
