using single quotes with findstr
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I have the following:
test = '''any word'''
which creates a char array containing the word with quotes
now i want to find the position of the quotes:
out = findstr(test,' '' ' )
but this doesn't work and returns an empty array. Can someone please explain how to do this and also why i cant use the escape sequence for single quotes i used to create the word in the first place.
Im using R2008b
Thanks
Matt
0 commentaires
Réponse acceptée
Oleg Komarov
le 5 Août 2011
strfind(test,'''')
With ' '' ' you are looking for < blank>'<blank>
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!