So you have two steps. First is to extract string between tags. Second is to split the extracted string using delimiters. I assume that the delimiters are /
and (space). I also assume that your string is loaded from some file using
importdata
function.
Then
% load string from a file
STR = importdata('testin');
% extract string between tags
B = regexprep(STR, '<.*?>','');
% split each string by delimiters and add to C
C = [];
for i=1:length(B)
if ~isempty(B{i})
C = [C strsplit(B{i}, {'/', ' '})];
end
end