MATLAB Answers

Combining two character arrays so that the elements of one of them is added in between the elements of the other one

1 view (last 30 days)
Saeid
Saeid on 30 Mar 2021
Commented: Saeid on 31 Mar 2021
I want to combine two character arrays
x='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
and
a='AAAAAAAAAAAAAAAAAAAAAAAAAA'
so that A is alterantingly added to each letter of x. the output should look like this:
Output='AAABACADAEAFAG...AZ'

More Answers (0)

Community Treasure Hunt

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

Start Hunting!