File Exchange

image thumbnail

Abjad calculator

version (1.5 KB) by Omar Joya
Calculates Abjad numerical values of Arabic/Persian words or texts

1 Download

Updated 16 May 2018

View License

The folder contains a script and a function.
abjadcalc script calls for user input in a character string.
>> abjadcalc
Enter the word: بسم الله الرحمن الرحیم
The abjad numeral is: 786

abjad function calculates Abjad numerical values for texts stored in a cell array:
x = {'ابجد','هوز','حطی'};
>> abjad(x)
ans =

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)



added variants of some arabic letters

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

fixed bug for texts with multiple words and spaces

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

MATLAB Online Live Editor Challenge

View the winning live scripts from faculty and students who participated in the recent challenge.

Learn more

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

» Watch video