fsk

1
t=0:.1:250; f=.05; x = (square(2*3.14*f*t)+1)/2; subplot(5,1,1); plot(t,x); fc1=500; fc2=1000; yc1=sin(2*3.14*fc1*t); subplot(5,1,2);plot(t,yc1); z=yc1.*x; subplot(5,1,3); plot(t,z); yc2=sin(2*3.14*fc2*t); subplot(5,1,4); plot(t,yc2); for i=1:length(t) if(x(i)>0) z1(i)=yc2(i).*x(i); else z1(i)=yc1(i).*(1-x(i)); end end subplot(5,1,5); plot(t,z1);

description

fsk

Transcript of fsk

t=0:.1:250;f=.05;x = (square(2*3.14*f*t)+1)/2;subplot(5,1,1);plot(t,x);fc1=500;fc2=1000;c1=s!"(2*3.14*fc1*t);subplot(5,1,2);plot(t,c1);#=c1.*x;subplot(5,1,3);plot(t,#);c2=s!"(2*3.14*fc2*t);subplot(5,1,4);plot(t,c2);for !=1:le"$t%(t)!f(x(!)&0)#1(!)=c2(!).*x(!);else#1(!)=c1(!).*(1'x(!));e"(e"( subplot(5,1,5);plot(t,#1);