Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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
'<<<<<<<<<<<<<<'

Réponse acceptée

madhan ravi
madhan ravi le 17 Avr 2019
Use repelem() or repmat()

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by