Friday, December 6, 2019

To observe the effect of N on C/I ratio and comment on the voice quality.

To observe the effect of N on C/I ratio and comment on the voice quality.

Software Used: MATLAB

Program:
clc;
clear all;
close all;
n=1;
for i=1:1:5;
    for j=0:1:5;
        if (i==1&&j==0);
        else
        N=i^2+i*j+j^2;
        Q=sqrt(3*N);
        M=10*log10(Q^4/6);
        table(n,1)=i;
        table(n,2)=j;
        table(n,3)=N;
        table(n,4)=Q;
        table(n,5)=M;
        n= n+1;
    end
    end
end
S=sortrows(table,3);
for i=1:1:18;
    if(S(i,3)==S(i+1,3));
        S(i,:)=[];
    end
end
disp('i         j          N           Q           C/I');
disp(S);

Output :-

0 comments:

If you have any doubts,please let me know