- How do you call a specific column of a matrix in MATLAB?
- How do I take the average of every n values in a vector MATLAB?
How do you call a specific column of a matrix in MATLAB?
To access elements in a range of rows or columns, use the colon . For example, access the elements in the first through third row and the second through fourth column of A . An alternative way to compute r is to use the keyword end to specify the second column through the last column.
How do I take the average of every n values in a vector MATLAB?
Avg = transpose(sum(y, 1) / n);