count number of occurences of character in string?
76 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Leor Greenberger
el 25 de Sept. de 2011
Respondida: Dharanee dharan Mani
el 3 de Mayo de 2020
Is there a function/method for counting the number of times a specific character occurs in a string? Say
v = '30.44.532.56';
This is obviously nonesense, but I would like to check how many times the decimal point occurs so that I can reject if used with a function I wrote. This value would be input into GUIDE gui I am creating, so this is why it's in string format.
0 comentarios
Respuestas (3)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!