You are on page 1of 2

Experiment # 6

>> t=0:1:100;
>> frq=0.1;
>> cosx=cos(2*pi*frq*t);
>> plot(cosx);
>> ts=10;
>> imp=zeros(1,101);
>> for i=1:101
if(mod(i,ts)==0)
imp(i)=1;
else
imp(i)=0;
end
end
>> plot(imp)
>> ss=cosx.*imp;
>> plot(ss)