A1=audioread('Sounds of Planets\venus.mp3');
A2=audioread('Sounds of Planets\earth.mp3');
A3=audioread('Sounds of Planets\jupiter.mp3');
A4=audioread('Sounds of Planets\jupitersmoon.mp3');
A5=audioread('Sounds of Planets\saturn.mp3');
A6=audioread('Sounds of Planets\uranus.mp3');
A7=audioread('Sounds of Planets\neptune.mp3');
A1=(A1(:,1)+A1(:,2))/2;
A2=(A2(:,1)+A2(:,2))/2;
A3=(A3(:,1)+A3(:,2))/2;
A4=(A4(:,1)+A4(:,2))/2;
A5=(A5(:,1)+A5(:,2))/2;
A6=(A6(:,1)+A6(:,2))/2;
A7=(A7(:,1)+A7(:,2))/2;
A1=decimate(A1,10);
A2=decimate(A2,10);
A3=decimate(A3,10);
A4=decimate(A4,10);
A5=decimate(A5,10);
A6=decimate(A6,10);
A7=decimate(A7,10);
B1=abs(fft(A1,2^17));
B2=abs(fft(A2,2^17));
B3=abs(fft(A3,2^17));
B4=abs(fft(A4,2^17));
B5=abs(fft(A5,2^17));
B6=abs(fft(A6,2^17));
B7=abs(fft(A7,2^17));
B1=B1(2^16:2^17);
B2=B2(2^16:2^17);
B3=B3(2^16:2^17);
B4=B4(2^16:2^17);
B5=B5(2^16:2^17);
B6=B6(2^16:2^17);
B7=B7(2^16:2^17);
xlim=((2^16:2^17)-2^16+1)*4410/2^16;
figure;
subplot(4,2,1)
plot(A1)
title('Venus')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,3)
plot(A2)
title('Earth')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,5)
plot(A3)
title('Jupiter')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,7)
plot(A4)
title('Io-Moon of Jupiter')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,2)
plot(xlim,B1)
title('Venus')
xlabel('Frequency(f)')
ylabel('A(f)');
subplot(4,2,4)
plot(xlim,B2)
title('Earth')
xlabel('Frequency(f)')
ylabel('A(f)');
subplot(4,2,6)
plot(xlim,B3)
title('Jupiter')
xlabel('Frequency(f)')
ylabel('A(f)');
subplot(4,2,8)
plot(xlim,B4)
title('Io-Moon of Jupiter')
xlabel('Frequency(f)')
ylabel('A(f)');
figure;
subplot(4,2,1)
plot(A5)
title('Saturn')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,3)
plot(A6)
title('Uranus')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,5)
plot(A7)
title('Neptune')
xlabel('Time(n)')
ylabel('A(n)');
subplot(4,2,2)
plot(xlim,B5)
title('Saturn')
xlabel('Frequency(f)')
ylabel('A(f)');
subplot(4,2,4)
plot(xlim,B6)
title('Uranus')
xlabel('Frequency(f)')
ylabel('A(f)');
subplot(4,2,6)
plot(xlim,B7)
title('Neptune')
xlabel('Frequency(f)')
ylabel('A(f)');