Need to know how to make a row vector of zeros and another number in a single command without explicitly entering the values

1 visualización (últimos 30 días)
I need to know how to make a row vector of mainly zeros and another number in a single command, with out explicitly entering values, like this:
[0 0 6 0 0 6]
Any idea how to do this?

Respuestas (1)

madhan ravi
madhan ravi el 17 de Feb. de 2019
R=zeros(1,6);
R([3 6])=6
  4 comentarios

Iniciar sesión para comentar.

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center 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