Observe the effect of N on C/I ratio and comment on the voice quality
Program:
clc;
clear all;
close all;
x=1;
for i=1:1:5;
for j=0:1:5;
if (i==1&&j==0);
else;
N=i^2+j^2+i*j;
Q=sqrt(3*N);`
CI=10*log10(Q^4/6);
table(x,1)=i;
table(x,2)=j;
table(x,3)=N;
table(x,4)=Q;
table(x,5)=CI;
x=x+1;
end
end
end
t=sortrows(table,3);
[p,q]=size(t);
for i=1:1:p-11;
if t(i,3)==t(i+1,3);
t(i,:)=[];
end
end
disp(' i j N Q C/I');
disp(t);
0 comments:
If you have any doubts,please let me know