Omit columns averages from a matrix - MATLAB Cody - MATLAB Central

Problem 180. Omit columns averages from a matrix

Difficulty:Rate

Omit columns averages from a matrix.

For example: A =

    16     2     3    13
     5    11    10     8
     9     7     6    12
     4    14    15     1

mean_of_each_column = 8.5000 8.5000 8.5000 8.5000

Result=

     7.5000   -6.5000   -5.5000    4.5000
    -3.5000    2.5000    1.5000   -0.5000
     0.5000   -1.5000   -2.5000    3.5000
    -4.5000    5.5000    6.5000   -7.5000

Solution Stats

69.8% Correct | 30.2% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers598

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page