Problem 43177. Extract a specific part of matrix!

In the given matrix, extract element that have odd rows and column number.

For example

A=[1 4 2 3 5]
B=extractodd(A);

B should be

[1 2 5]

And, if A is

[1 2 3
 4 5 6
 7 8 9]

B should be

[1 3
 7 9]

Solution Stats

64.44% Correct | 35.56% Incorrect
Last Solution submitted on Sep 30, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers79

Suggested Problems

More from this Author27

Community Treasure Hunt

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

Start Hunting!