Systematically add entries to vector array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MiauMiau
am 22 Aug. 2017
Bearbeitet: Stephen23
am 22 Aug. 2017
Hi,
Given I have a vector as for instance: [ 1 3 5 7 1 3 ...]
I want to add twice the number "8" after each entry, hence we would have:
[ 1 8 8 3 8 8 5 8 8 7 8 8 1 8 8 3 8 8 ...]
How could I do that, in a way which would be not specific for the length of my initial array? Thanks
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!