I have a column vector that I am trying to take the sum of, but I want it to display only the sum. Every time I use the sum function it also spits out every element in the matrix, along with the sum, which I do not want it to do. This seemed like an easy fix, but I couldn't find anything online.
MATLAB: Is the ‘sum’ function also outputting elements of the matrix
forgot semicolonmatrixoutput errorsum
Best Answer