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

1 visualizzazione (ultimi 30 giorni)
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
'<<<<<<<<<<<<<<'

Risposta accettata

madhan ravi
madhan ravi il 17 Apr 2019
Use repelem() or repmat()

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by