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

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

Weitere Antworten (0)

Produkte

Version

R2021a

Tags

Gefragt:

am 24 Feb. 2022

Bearbeitet:

am 24 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by