Creating vectors stings of letters such as names

If my input was qwerty (for example) how do I convert this into a vector [q w e r t y]

 Accepted Answer

It already is a vector--
>> s='qwerty';
>> whos s
Name Size Bytes Class Attributes
s 1x6 12 char
>> s(1)
ans =
q
>> s(1)
ans =
q
>>

More Answers (0)

Asked:

KA
on 8 Nov 2015

Answered:

dpb
on 8 Nov 2015

Community Treasure Hunt

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

Start Hunting!