Fixed critical bug in matlab Nc calculation

Nc was returning a scalar due to dividing via / instead of ./
Vectorized Iidf calculation now works correctly in matlab