num2abc(N,LetterCas​e)

Version 1.0.0.0 (1.48 KB) by Sugato
This function returns the N-th english alphabet in upper or lower case. N ranges from 1 to 26.
23 Downloads
Updated 12 Aug 2017

View License

Function Description:
This function returns the N-th english alphabet either in upper or lower
case as specified by the user. N ranges from 1 to 26.
N = 01 => A
N = 26 => Z

AUTHOR: Sugato Ray | Created on: 04-MAR-2017 | ray.sugato[at]gmail.com

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLEASE ACKNOWLEDGE THE AUTHOR IF YOU USE THIS CODE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INPUT:
N = an integer from 1 to 26
LetterCase = U or L
Othe alternative inputs for LetterCase are:
1. upper/Upper/UPPER/U
2. lower/Lower/LOWER/L

OUTPUT:
A = N-th english alphabet

EXAMPLE:
A = num2abc(N,LetterCase);

Cite As

Sugato (2025). num2abc(N,LetterCase) (https://uk.mathworks.com/matlabcentral/fileexchange/64099-num2abc-n-lettercase), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Text Data Preparation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0