Suppose I have a string \'johndoe@hotmail.com\'. I want to store the string before and after \"@\" into 2 separate strings. What would be the easiest method of
\'johndoe@hotmail.com\'
TEXTSCAN works too.
str = 'johndoe@hotmail.com'; parts = textscan(str, '%s %s', 'Delimiter', '@');
returns a cell array where parts{1} is 'johndoe' and parts{2} is 'hotmail.com'.