The mean value for a first column in a matrix
5 views (last 30 days)
Show older comments
i have 6x3 matrix and i want to calculate mean value of first column without the second and third one
5 Comments
Peng Li
on 25 Mar 2020
colon index is one of the most useful operator in MATLAB. i recommend you check the reference link for colon index.
besically, a(:, n) means the nth column of matrix a.
Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!