📄 example_fplot.m
字号:
% example_fplot.m
% 通过fplot函数绘制曲线
% 图一:绘制humps函数
subplot(2,1,1);
fplot(@humps,[-0.5,3]);
title('figure1: humps');
xlabel('x');ylabel('humps(x)');
grid on;
% 图二:绘制函数sin(x)/x的曲线
subplot(2,1,2);
f_hdl=@(x) sin(x)/(x);
fplot(f_hdl,[-10,10]);
title('figure1: sin(x)/x');
xlabel('x');ylabel('sin(x)/x');
grid on;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -