how to take first some numbers from sequence?
Ältere Kommentare anzeigen
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 Kommentar
Indexing like this is very basic MATLAB usage. You should do these tutorials to learn how to use basic MATLAB concepts like indexing
Antworten (1)
Andrei Bobrov
am 11 Mai 2016
Bearbeitet: Andrei Bobrov
am 11 Mai 2016
y = x(1:s)
Kategorien
Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!