Column Removal (★★★) - MATLAB Cody - MATLAB Central

Problem 45839. Column Removal (★★★)

Difficulty:Rate

(copy of prob 7)

Remove the nth column from input matrix A and return the resulting matrix in output B.

So if

 A = [1 2 3;
      4 5 6];

and

 n = 2 

then B is

 [ 1 3  
   4 6 ]

Solution Stats

66.4% Correct | 33.6% Incorrect
Last Solution submitted on Mar 15, 2025

Problem Comments

Solution Comments

Show comments

Group

Swap Between Values Image
Swap Between Values
  • 13 Problems
  • 40 Finishers

Problem Recent Solvers235

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