How to create a column vector repeating the same character n times?
48 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anastasiia Khibovska
am 27 Sep. 2022
Kommentiert: Anastasiia Khibovska
am 28 Sep. 2022
Probably an easy answer, but I am quite stuck on figuring out how to create a character column vector based on a length of another column vector.
I find
cols = length(data) to find how many rows there are, but then how to create a new column vecor that has the same number of rows and has the same character repeating in each row like 'on'.
Thank you for any help!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!