hold off;
for index=1:4
xSamplesPerSymbol=index;
switch index
case 1
xReceiveDelay=0;
color='r';
case 2
xReceiveDelay=1;
color='g';
case 3
xReceiveDelay=1;
color='b';
case 4
xReceiveDelay=1;
color='m';
end
for i=1:length(x)
xSNR=x(i);
sim('project8_2');
y(i)=xErrorRate(1);
end
semilogy(x,y,color);
hold on;
end