how to write this equation

6 Comments

Adam Danz
Adam Danz on 24 Mar 2020
Edited: Adam Danz on 24 Mar 2020
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 on 24 Mar 2020
Edited: Adam Danz 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.
so basically i am meant to write down all these equations on matlab and this is where i am at,

Sign in to comment.

Answers (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))]);

Asked:

on 24 Mar 2020

Answered:

on 24 Mar 2020

Community Treasure Hunt

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

Start Hunting!