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.

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 27 de Sept. de 2011

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Embedded Coder en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by