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

2 Ansichten (letzte 30 Tage)
Elena
Elena am 24 Feb. 2022
Bearbeitet: Elena am 24 Feb. 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by