How to select a character array if it has a specific end value

2 visualizaciones (últimos 30 días)
Elena
Elena el 24 de Feb. de 2022
Editada: Elena el 24 de Feb. de 2022
say this is my input:
emails = 'myemail@gmail.com, random@yahoo.com, notanemail'
I would only want to select the values that contain @gmail or @yahoo (etc.) so not the last one becasue it's not an email. How could i do this?

Respuesta aceptada

Steven Lord
Steven Lord el 24 de Feb. de 2022
See the split and contains functions.

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by