Average of even-numbered columns - MATLAB Cody - MATLAB Central

Problem 44255. Average of even-numbered columns

Difficulty:Rate

Given a vector, find the average of even-numbered columns.

e.g

x = [ 4 6 8 9 1 2 7 ]

y = ( 6 + 9 + 2 ) / 3

Solution Stats

64.91% Correct | 35.09% Incorrect
Last Solution submitted on Nov 08, 2025

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
🚀 MATLAB EXPO 2025 – Day 2 Starts Tomorrow, November 13!
Don’t miss out on two incredible keynotes that will shape the future...
0

Problem Recent Solvers69

Suggested Problems

More from this Author7

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!