To find the sum of everything in a column of a matrix in MATLAB, you can use indexing to select the column and then use the sum() function. Here's an example:
main.m113 chars6 lines
In this example, the : operator selects all rows, and the 2 specifies the second column. The resulting sum will be stored in the variable col_sum.
gistlibby LogSnag