plot_1.m
来自「通过图形实现OFMD的图像仿真」· M 代码 · 共 24 行
M
24 行
line=4;
x=5:2.5:40;
y=zeros(line,15);
yo=747;
y_scale=(747-47)/3;
ya=[76 132 194 259 313 338 383 431 442 453 479 479 502 493 513
90 159 220 289 331 367 439 493 504 514 537 550 557 566 563
114 177 238 309 356 408 504 549 582 606 619 635 639 643 642
188 225 283 336 367 382 406 419 424 432 442 442 441 451 445];
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-.', x, y(4, :), 'x:');
hold on;
ylabel('MSE');
xlabel('SNR(dB)');
axis([5,40,1e-4,1e-1]);
legend('线性内插','高斯内插','cubic内插','变换域插值');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?