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

4 ビュー (過去 30 日間)
Musadiq Ahmed
Musadiq Ahmed 2019 年 4 月 17 日
回答済み: madhan ravi 2019 年 4 月 17 日
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 件)

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by