📄 example_ezplot.m
字号:
% example_ezplot.m
% 演示轻松绘图函数ezplot和ezpolar
% 图一:ezplot绘图(符号函数)
subplot(2,1,1);
syms t;
y=exp(-2*t/3)*sin(1+2*t);
ezplot(y,[pi,3*pi]);
grid on;
title('figure1: ezplot');
xlabel('x');
ylabel('exp(-2*t/3)*sin(1+2*t)');
% 图二:ezplot绘图(匿名函数)
subplot(2,1,2);
f_hdl=@(x) sin(x)/(x);
ezplot(f_hdl,[-15,15]);
title('figure2: ezplot');
xlabel('x');ylabel('sin(x)/x');
grid on;
% 图三:ezpolar绘图
figure(2);
ezpolar('1+cos(t)');
grid on;
title('figure ezpolar');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -