How to solve the following issue

throughput =((Bmax.*log(2)(1+((p_fix).*E_part))./ noise+((p_fix).*E_part)))
File: Column: 21
()-indexing must appear last
in an index expression.

 Accepted Answer

Walter Roberson
Walter Roberson on 15 Jan 2018
You have log(2)(1+etc) without any operation between the two. Perhaps you wanted log(2)*(1+etc)

3 Comments

i would like to check whether logbase2 can be written in log(2).
No, it cannot. For log base 2, use log2()

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!