how to write this equation
显示 更早的评论

6 个评论
Is this a duplicate question or are you looking for answers to both questions?
Sultan Al Harthy
2020-3-24
Sultan Al Harthy
2020-3-24
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
2020-3-24
Sultan Al Harthy
2020-3-24
回答(1 个)
David Hill
2020-3-24
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))]);
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

