Array of same characters using any method (via loop method or any method)

1 Ansicht (letzte 30 Tage)
I want to create an array of repeating same character
e.g
A = [ '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<']
i want to create character array [ '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<' '<'] to be used.
So that when i call A its output should be like this
A
'<<<<<<<<<<<<<<'

Akzeptierte Antwort

madhan ravi
madhan ravi am 17 Apr. 2019
Use repelem() or repmat()

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by