simulink中sim函数调用模型和semilogy函数的问题
出现问题的部分是:for i=1:length(x) %信噪比依次取向量的x取值范围; xSNR=x(i); %执行GMSK仿真模型; sim('gmsk'); %从误码率中获得调制系统的误码率 y(i)=xErrorRate(1);end%绘制信噪比与误码率的关系曲线semilogy(x,y,'r');出现的问题是:这个程序在运行时总是重复的调用gmsk的模型,当i=length(x) 时不循环,但是无论怎么样semilogy(x,y,'r')始终无法画出误码率图形。其他的模块部分都没有问题,而且波形也基本正确仿真时出现的提示:Warning: The model 'gmsk' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.> In xErrorRate at 10
页:
[1]