MATLAB: Error – “() Indexing must appear last in an index expression”; what is wrong with the code? I’m new to Matlab.

error

N(i)=(-1)^s*(F(f,1)(1/2)+F(f,2)(1/4)+F(f,3)(1/8))*2^(c-2)

Best Answer

F(f,1)(1/2) means that you want to index F at locations f and 1, and then you want to index that result at index 1/2 .
Perhaps you intended to write in some multiplication? MATLAB has no implicit multiplication.