Azzera filtri
Azzera filtri

make a vector from one value

20 visualizzazioni (ultimi 30 giorni)
Lev Mihailov
Lev Mihailov il 21 Lug 2020
Modificato: Bruno Luong il 21 Lug 2020
hello! I have values ​​0.421, I need to make a vector of 1200 values ​​of the same from it without a loop
% I need to do without a loop x=[​​0.421 ​​0.421 ​​0.421 ​​0.421 ...]

Risposta accettata

Bruno Luong
Bruno Luong il 21 Lug 2020
Modificato: Bruno Luong il 21 Lug 2020
One way (among many)
x = 0.421 + zeros(1,1200)

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by