how to take first some numbers from sequence?

1 次查看(过去 30 天)
Suppose I have a sequence of n numbers x=[1,2,6,5,5,44,12,12,12,65,9,9,9,8,33,6,5,4,4,8,7,98,98,61,61,61...n] how to take first s=14 numbers, like y=[1,2,6,5,5,44,12,12,12,65,9,9,9,8]
  1 个评论
Stephen23
Stephen23 2016-5-11
编辑:Stephen23 2016-5-11
Indexing like this is very basic MATLAB usage. You should do these tutorials to learn how to use basic MATLAB concepts like indexing

请先登录,再进行评论。

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2016-5-11
编辑:Andrei Bobrov 2016-5-11

类别

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