how to take first some numbers from sequence?

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개)

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2016년 5월 11일

편집:

2016년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by