MATLAB Answers

0

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

Asked by Musadiq Ahmed on 17 Apr 2019
Latest activity Answered by madhan ravi
on 17 Apr 2019
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
'<<<<<<<<<<<<<<'

  0 Comments

Sign in to comment.

Tags

No tags entered yet.

1 Answer

Answer by madhan ravi
on 17 Apr 2019
 Accepted Answer

Use repelem() or repmat()

  0 Comments

Sign in to comment.