How to create a matrix for character-alphabets

i want to create alphabetic matrix like this [ a b c d d e f g h i j k } so how we create it???

3 Kommentare

>> letters = num2cell('a':'k')
letters =
'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k'
>> 'a':'k'
ans = abcdefghijk
HASSAM SAJID
HASSAM SAJID am 22 Dez. 2017
thanks its worked :) nice support

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Birdman
Birdman am 22 Dez. 2017
numbers=1:26;
letters=char(numbers+64)

3 Kommentare

Or just 'a':'k'
HASSAM SAJID
HASSAM SAJID am 22 Dez. 2017
Thanks its worked for me .
This is the best way for sure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by