📄 fig1.m
字号:
% Figure 1 in the Tutorial Introduction.clear% Training set.conf.name = 'hermite';conf.p = 100;[x, y] = get_data(conf);% Test set.conf.p = 1000;conf.ord = 1;conf.std = 0;[xt, yt] = get_data(conf);% Get figure.fig = get_fig('Figure 1');% Plot.hold offplot(xt, yt, 'k--', 'LineWidth', 1)hold onplot(x, y, 'r*', 'MarkerSize', 8)% 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('test', 'training')% Save postscript.print -depsc fig1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -