how to write this equation

6 个评论

Adam Danz
Adam Danz 2020-3-24
编辑:Adam Danz 2020-3-24
Is this a duplicate question or are you looking for answers to both questions?
hello adam,
i am looking to write down both questions if you dont mind,
i will emait you what exactly im trying to do,
so we can be on the same page
Adam Danz
Adam Danz 2020-3-24
编辑:Adam Danz 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.
so basically i am meant to write down all these equations on matlab and this is where i am at,

请先登录,再进行评论。

回答(1 个)

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!

Translated by