//ZAD 1. clear clc n=0:1:15; A1=4.5; x1=A1*sin(2*%pi*n/16); subplot(4,2,1) plot(n,x1) A2=3; W=6; x2=A2*sin(W*%pi*n/16); subplot(4,2,2) plot(n,x2) x3=x1+x2; subplot(4,2,3) plot(n,x3) x4=x1-x2; subplot(4,2,4) plot(n,x4) n=0:1:255; A1=4.5; y1=A*sin(2*%pi*n/256); subplot(4,2,5) plot(n,y1) A2=3; W=6; y2=A2*sin(W*%pi*n/256); subplot(4,2,6) plot(n,y2) y3=y1+y2; subplot(4,2,7) plot(n,y3) y4=y1-y2; subplot(4,2,8) plot(n,y4) //ZAD 2. figure x5=fft(x3) subplot(2,1,1) plot(n,x5) x6=fft(x4) subplot(2,1,2) plot(n,x6)