OutputPort1=InputPort1;
OutputPort2=InputPort1;
sampleLength = length(InputPort1.Sampled.Signal); 
SeqLength = length(InputPort2.Sequence);
samplesPerBit = floor(sampleLength/SeqLength); 
padding = mod(sampleLength,SeqLength);
seqMatched=repmat(InputPort2.Sequence,1,samplesPerBit); 
seqMatched= seqMatched(:)'; 
seqMatched=[seqMatched zeros(1,padding)];
compseqMatched= ~seqMatched; 
OutputPort1.Sampled.Signal = InputPort1.Sampled.Signal.*seqMatched;
OutputPort2.Sampled.Signal = InputPort1.Sampled.Signal.*compseqMatched;