ezplot绘制隐函数
clc,clear;
close all;
syms x;
f1=exp(2*x)*sin(2*x);
subplot(2,2,1),ezplot(exp(2*x),[-pi,pi]);
subplot(2,2,2),ezplot(sin(2*x));
subplot(2,2,3),ezplot(exp(2*x)+sin(2*x),[-pi,pi,0,2*pi]);
subplot(2,2,4),ezplot(f1,[-4*pi,4*pi]);
fimplicit绘制
clc,clear;
close all;
fimplicit(@(x,y) x.^2 - y.^2 - 1)
clc,clear;
close all;
f = @(x,y) x.^2 + y.^2 - 3;
fimplicit(f,[-3 0 -2 2])
clc,clear;
close all;
f1 = @(x,y) x.^2 + y.^2 - 1;
fimplicit(f1,':m')
hold on
f2 = @(x,y) x.^2 + y.^2 - 2;
fimplicit(f2,'--c','LineWidth',2)
hold off