Find the mean of a 2-D matrix after excluding elements of specified sub-matrix - MATLAB Cody - MATLAB Central

Problem 44279. Find the mean of a 2-D matrix after excluding elements of specified sub-matrix

  • Created by PE
Difficulty:Rate

You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix A is of size 6x6 and if we want to exclude the elements A(2,2), A(2,3), A(3,2), A(3,3), we just specify r1=1, r2=4, c1=1, c1=4. i.e. we want to exclude elements A(r1+1:r2-1, c1+1:c2-1).

Solution Stats

42.27% Correct | 57.73% Incorrect
Last Solution submitted on Feb 14, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers32

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