matrix row extraction help

1 次查看(过去 30 天)
hi there, i have a very simple question. how do i extract certain rows from a matrix. for example say i have a matrix nxm and i want to extract every 7th row from that matrix. how do i do that? thanks in advance. SN

采纳的回答

Andrei Bobrov
Andrei Bobrov 2013-3-13
编辑:Andrei Bobrov 2013-3-13
x = randi(150,40,10); % your matrix
out = x(7:7:end,:);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by