Matrix to vector transformation - MATLAB Cody - MATLAB Central

Problem 44443. Matrix to vector transformation

Difficulty:Rate

given a matrix, make in the output 1 column vector putting odd numbers in ascending order after that put the even numbers in descending order. Note :no repeated numbers in the output. Example

x=   1     2     3
     4     5     6
     7     8     9
y=   1
     3
     5
     7
     9
     8
     6
     4
     2

Solution Stats

35.57% Correct | 64.43% Incorrect
Last Solution submitted on Jul 29, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers46

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!