How to use the SUM() function..?
3 views (last 30 days)
I must be doing something very stupid here, as I can't get the sum() function to work at all;
X = [0 0.5 1 1.5 2 2.5]
From what I've read, this should sum all the element of row 1 of the matrix X and return a numerical result, but when I try it, I get the error:
Array indices must be positive integers or logical values.
Can anybody tell me what I'm doing wrong, please?