How to do sum of array having decimal value?
11 views (last 30 days)
For example: I have an array h = [ 0.2 0.54 0.75 1.33]; and I want to sum of the array h from second value to the end. sum(h(2:end);
But this will give an error Subscript indices must either be real positive integers or
Help me how to address or remove this error.