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

1 次查看(过去 30 天)
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
'<<<<<<<<<<<<<<'

采纳的回答

madhan ravi
madhan ravi 2019-4-17
Use repelem() or repmat()

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by