Effacer les filtres
Effacer les filtres

string not recognized problem

4 vues (au cours des 30 derniers jours)
Yu Li
Yu Li le 25 Fév 2019
Commenté : Image Analyst le 25 Fév 2019
I'm not sure if this title is approprite but I feel this is a very weird problem
there is a string 'Cfi' in the string text_tmp.mat, if I use the command:
strfind(text_tmp,'Cfi')
the result is 6, when I assign it to a parameter, such a 'loc_CA', it still works.
loc_CA=strfind(text_tmp,'Cfi')
but, when I put the command into a .m file and run this .m file, the result becomes empty:
load text_tmp
loc_CA=strfind(text_tmp,'Cfi')
is there any mistake with my operation?
Thanks!
Yu
  6 commentaires
Stephen23
Stephen23 le 25 Fév 2019
Modifié(e) : Stephen23 le 25 Fév 2019
"It's not a regular Western type letter"
It looks like a standard f-ligature to me:
When I searched for it using an online Unicode search engine it identified it as 'LATIN SMALL LIGATURE FI' (U+FB01).
Image Analyst
Image Analyst le 25 Fév 2019
I figured it was some unicode character but by "regular", I meant it does not show up on my standard English keyboard. Most unicode characters don't. All I was able to do was to verify what Yu did, but I have no explanation for it. Do you?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by