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.

 Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 27 Sep 2011

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Embedded Coder dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by