I want to implement the following equation
Kindly tell me,which method is correct
ID =0;for i=1:256ID = ID+HD(i);end
or otherwise
ID = sum(HD(1:256))
Please help me
summation
ID =0;for i=1:256ID = ID+HD(i);end
ID = sum(HD(1:256))
Best Answer