Generating sequence

how to generate a sequence x of length 200 samples,where the first 30 values equal 1 and the remainder have a value of 0.

 Risposta accettata

Fangjun Jiang
Fangjun Jiang il 27 Set 2011

0 voti

a=[ones(30,1);zeros(170,1)]

Più risposte (0)

Categorie

Scopri di più su Embedded Coder in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by