Abjad calculator

版本 1.5.0.0 (1.5 KB) 作者: Omar Joya
Calculates Abjad numerical values of Arabic/Persian words or texts
29.0 次下载
更新时间 2018/5/16

查看许可证

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

引用格式

Omar Joya (2024). Abjad calculator (https://www.mathworks.com/matlabcentral/fileexchange/67360-abjad-calculator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.5.0.0

.

1.3.0.0

added variants of some arabic letters

1.2.0.0

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

1.1.0.0

fixed bug for texts with multiple words and spaces

1.0.0.0