Azzera filtri
Azzera filtri

How can we create a vector of length n

89 visualizzazioni (ultimi 30 giorni)
Omar B.
Omar B. il 19 Set 2019
Commentato: Omar B. il 19 Set 2019
Hello,
How can we write in Matlab vector u= [1/10 ,1/10 ,..., 1/10] where u \in{R}^{200}

Risposta accettata

James Tursa
James Tursa il 19 Set 2019
Modificato: James Tursa il 19 Set 2019
There are many ways of doing this. E.g., use the ones( ) function and divide by 10. Or use the zeros( ) function and add 1/10. Or use the repelem( ) function. Etc.

Più risposte (0)

Categorie

Scopri di più su Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by