OutputPort1 = InputPort1;
OutputPort2 = InputPort1;

sampledLength = length(InputPort1.Sampled.Signal);
seqLength = length(InputPort2.Sequence);

samplesPerBit = floor(sampledLength/seqLength);
padding = mod(sampledLength,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;