File Exchange

image thumbnail

Abjad calculator

version 1.5 (1.5 KB) by

Calculates Abjad numerical values of Arabic/Persian words or texts

2 Downloads

Updated

View License

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,:)))

Comments and Ratings (0)

Updates

1.5

.

1.3

added variants of some arabic letters

1.2

added error message if the character is not assigned with an Abjad numeral

1.1

fixed bug for texts with multiple words and spaces

MATLAB Release
MATLAB 9.4 (R2018a)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video