make a vector from one value
75 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lev Mihailov
am 21 Jul. 2020
Bearbeitet: Bruno Luong
am 21 Jul. 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 ...]
0 Kommentare
Akzeptierte Antwort
Bruno Luong
am 21 Jul. 2020
Bearbeitet: Bruno Luong
am 21 Jul. 2020
One way (among many)
x = 0.421 + zeros(1,1200)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!