extract even and odd rows in a matrix -matlab

Posted code-saturne

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了extract even and odd rows in a matrix -matlab相关的知识,希望对你有一定的参考价值。

* odd and even rows in a matrix
a=linspace(1,20,20)
a=a‘
a_even = a(2:2:end,:)
a_odd=a(1:2:end,:)

 


 

以上是关于extract even and odd rows in a matrix -matlab的主要内容,如果未能解决你的问题,请参考以下文章

codeforces 621A Wet Shark and Odd and Even

CodeForces 621A Wet Shark and Odd and Even

leetcode:Partition Array by odd and even

lintcode-easy-Partition Array by Odd and Even

Codeforces Round #341 Div.2 A. Wet Shark and Odd and Even

:nth-child(even/odd) 不适用于 acf