Abjad calculator
Version 1.5.0.0 (1.5 KB) by
Omar Joya
Calculates Abjad numerical values of Arabic/Persian words or texts
The folder contains a script and a function.
abjadcalc script calls for user input in a character string.
Example:
>> abjadcalc
Enter the word: بسم الله الرحمن الرحیم
The abjad numeral is: 786
abjad function calculates Abjad numerical values for texts stored in a cell array:
Example:
x = {'ابجد','هوز','حطی'};
>> abjad(x)
ans =
10
18
27
IMPORTANT:
For Matlab versions prior to 2012b, replace index(j) = find(contains(alpha,Ahex(j,:))) with index(j)=find(strcmp(alpha,Ahex(j,:)))
Cite As
Omar Joya (2026). Abjad calculator (https://www.mathworks.com/matlabcentral/fileexchange/67360-abjad-calculator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
