select certain matrix elements

3 次查看(过去 30 天)
hello,everyone
i just want to ask how to select eg the 1-10 and 20-30 rows elements in the first column.
like A(1:10 and 20:30,1)

采纳的回答

Fabio Freschi
Fabio Freschi 2019-10-15
编辑:Fabio Freschi 2019-10-15
You can simply concatenate your ranges using square brackets:
A([1:10 20:30],1)

更多回答(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