Table:
begin	end	state
1	5	non-cytoplasmic
6	25	transmembrane
26	31	cytoplasmic
32	51	transmembrane
52	52	non-cytoplasmic

Input:
>MMP_RS08930
MFGFSWIITAIIAAIVVFLILKIMFKMVFTTIKLILLFAAIILLVYALSVLI

Or try the official Phobius web server, which has a different display

Reference: Advantages of combined transmembrane topology and signal peptide prediction - the Phobius web server