MATLAB: How i can take part of email address

how i can take part of email address

hello all; if i want to take part of email address. for instance, baashe@hotmail.com, suppose i want after @, which means hotmail.com. help me to solve this

Best Answer

... and with regexp
>> regexp( 'baashe@hotmail.com', '(?<=@).+$', 'match' )
ans =
'hotmail.com'