Need to know how to make a row vector of zeros and another number in a single command without explicitly entering the values
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
1 commentaire
Walter Roberson
le 17 Fév 2019
Like
reshape(kron(zeros(1,1),ones(1,2)),6*ones(1,1)].',ones(1,2)),1,[])
Réponses (1)
Voir également
Catégories
En savoir plus sur Matched Filter and Ambiguity Function dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!