how to write this equation

1 view (last 30 days)
Sultan Al Harthy
Sultan Al Harthy on 24 Mar 2020
Answered: David Hill on 24 Mar 2020
  6 Comments
Sultan Al Harthy
Sultan Al Harthy on 24 Mar 2020
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)

David Hill
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 Get Started with MATLAB 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!