Compare string in different file

1 回表示 (過去 30 日間)
Ebtesam Almansor
Ebtesam Almansor 2016 年 9 月 26 日
回答済み: Ebtesam Almansor 2016 年 9 月 27 日
Hi there I need matlab code to compare the input word with list (for example if the input word is BRB which is abbrivation )I want to search for BRB in Abbrivation list and replace it with the full stanser word

採用された回答

KSSV
KSSV 2016 年 9 月 26 日
doc strcmp and strcmpi

その他の回答 (1 件)

Ebtesam Almansor
Ebtesam Almansor 2016 年 9 月 27 日
= input('what is your name: ', 's');
str=native2unicode(n,'UTF-8');
c=strsplit(n); %tokenizer
%h=strfind('. ',c); % find this string
x = strmatch('لا',c);
TF = contains(c,'ا'); matches = c(TF);
help me with is please

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by