How to create a discrete signal shifted in time?

Hi experts, I need to created a discrete signal (train of eight pulses) shifted in time.Also this signal is multiplied by a random signal(ak) .I create the train of 8 pulse and the random signal.Please check the screenshoot attached to see the signal that I need to generate.
ak=4*round(rand(1,10))-2; T=1*10^(-3); L=8; Tm=T/L; t=0:Tm:T-Tm; s=ones(1,L); ....................................

2 Comments

You don't tell us what Tb is and what s is and why 8 when you have ten coefficients
Hi Wayne,Tb=T=1*10^(-3) seconds. L is 8 because I need a rectangular pulse represented by 8 sample.This rectangular pulse must be multiplied to Ak coeficient and shifted in time 10 times.
Thanks!!!

Sign in to comment.

Answers (1)

Asked:

on 25 Nov 2013

Commented:

on 3 Dec 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!