xSampleTime=1/100000;
xSimulationTime=10;
xInitialSeed=[61 71];
xPhaseOffset=pi/4;
xSamplesPerSymbol=1;
xReceiveDelay=0;
x=0:10;
y=x;
for i=1:length(x);
xSNR=x(i);
sim('ch1005');
y(i)=xErrorRate(1);
end
semilogy(x,y,'*');
错误:Error in block 'untitled/AWGN Channel': Block parameter 'xSNR' cannot be evaluated. MATLAB error message: Undefined function or variable 'xSNR'
Error in block 'untitled/Bernoulli Binary Generator': Block parameter 'xInitialSeed' cannot be evaluated. MATLAB error message: Undefined function or variable 'xInitialSeed'
等诸如此类的错误。