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.

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 27 Sep. 2011

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Embedded Coder finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by