Adding Zeroes to a Vector
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hollis Williams
am 18 Mai 2019
Bearbeitet: madhan ravi
am 18 Mai 2019
I have a row vector which I have created by repeating the same vector many times and would like to add zeroes onto the vector, so for example if I have a row vector which is 1x306, I need to add a row of 102 zeroes to the rest of the vector to make it 1x408. What would be the easiest way of doing this?
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 18 Mai 2019
vector = [vector,zeros(1,102)]
2 Kommentare
madhan ravi
am 18 Mai 2019
Bearbeitet: madhan ravi
am 18 Mai 2019
By the way how is this related to the original question you asked???
"Adding Zeroes to a Vector"
"I have a row vector which I have created by repeating the same vector many times and would like to add zeroes onto the vector, so for example if I have a row vector which is 1x306, I need to add a row of 102 zeroes to the rest of the vector to make it 1x408. What would be the easiest way of doing this?"
No , your explanation doesn't even make sense. Post it as a separate question.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!