Clear Filters
Clear Filters

Average of Column in matlab.

2 views (last 30 days)
Saki
Saki on 9 Apr 2024
Answered: Voss on 9 Apr 2024
i have 131x324 matrix, how can i take the average of each 324 column which will give me 1 by 324 matrix?

Accepted Answer

Voss
Voss on 9 Apr 2024
avg = mean(M,1);
where M is your matrix.

More Answers (0)

Categories

Find more on Operating on Diagonal 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!