close all
clear all
x=-0.5:0.01:0.5;
y=-1.95.*x.*x;
plot(x,y,'-','LineWidth',2.5)
XX=x;
YY=y;
hold on
y=-3.70.*x.*x;
plot(x,y,'r-','LineWidth',2.5)
hold on
XX=[XX x(end:-1:1)];
YY=[YY y(end:-1:1)];
patch(XX,YY,'r')
y=-11.0.*x.*x;
plot(x,y,'g-','LineWidth',2.5)
XX=x;
YY=y;
hold on
y=-55.*x.*x;
plot(x,y,'k-','LineWidth',2.5)
XX=[XX x(end:-1:1)];
YY=[YY y(end:-1:1)];
patch(XX,YY,'c')
xlabel('\fontsize{15} \Phi_0')
ylabel('\fontsize{15} r')
c = [x(end:-1:1)]; % 这个语句要学会相当于把x数列倒着排列
matlab画阴影部分
最新推荐文章于 2024-05-25 11:37:01 发布