⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fig1.m

📁 Radial Basis Function
💻 M
字号:
% Figure 1 in the rbf_rt_1 manual page.clear% Hermite training data.[x, y] = get_data('hermite');% Test data.test.name = 'hermite';test.p = 1000;test.ord = 1;test.std = 0;[xt, yt] = get_data(test);% Run the method with the default configuration.[c, r, w, info] = rbf_rt_1(x, y);% Now do the test set predictions.Ht = rbf_dm(xt, c, r, info.dmc);ft = Ht * w;% Get figure.fig = get_fig('Figure 1');% Plot.hold offplot(xt, yt, 'k--')hold onplot(xt, ft, 'r-', 'LineWidth', 2)% Configure plot.set(gca, 'FontSize', 16)set(gca, 'Position', [0.1 0.15 0.85 0.8])set(gca, 'XLim', [-4 4])set(gca, 'YLim', [0 3])set(gca, 'XTick', -4:2:4)set(gca, 'YTick', 0:3)xlabel('x', 'FontSize', 16)ylabel('y', 'FontSize', 16, 'Rotation', 0)legend('target', 'prediction')% Save postscript.print -depsc fig1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -