plot_2.m
来自「通过图形实现OFMD的图像仿真」· M 代码 · 共 23 行
M
23 行
line=3;
x=5:2.5:40;
y=zeros(line,15);
yo=587;
y_scale=(587-40)/3;
ya=[65 107 155 204 249 265 300 339 347 354 376 375 395 385 401
149 179 223 263 288 300 318 328 332 339 347 347 347 353 350
159 196 225 276 302 312 343 353 353 352 352 352 355 358 359];
yr=(yo-ya)/y_scale;
for row=1:line
for column=1:15
y(row, column)=1e-4*10^yr(row, column);
end
end
figure;
semilogy(x,y(1,:),'+--', x, y(2,:), '*:', x, y(3,:), 'o-.');
hold on;
ylabel('MSE');
xlabel('SNR(dB)');
axis([5,40,1e-4,1e-1]);
legend('线性内插','变换域插值','线性内插+低通滤波');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?