Quantcast
Channel: MATLAB Central Newsreader - tag:"homework"
Viewing all articles
Browse latest Browse all 36

Arranging Even and Odd numbers in a Matrix without For / While Loops

$
0
0
Hello all,

Need your quick help for an assignment.

The question is as follows:

Write a function division that takes a matrix A of positive integers as an input and returns two row vectors. The first one contains all the even elements of A and nothing else while the second contains all the odd elements of A and nothing else, both arranged according to column-­?major order of A.

Use of While and For Loops is prohibited.


A quick reply would be deeply appreciated.

Viewing all articles
Browse latest Browse all 36

Trending Articles