Examples on using the sum function in Octave
If you are taking Andrew Ng’s Machine Learning course on Coursera, the
sum function is one of the functions that you will probably need to use to complete your assignments. Since the
sum function can be counter intuitive in some cases, I document some of the examples that I had created while trying to get a better understanding of the sum function in Octave.