本文MATLAB源码,下载后直接打开运行即可[点击跳转下载]-附实验报告https://download.csdn.net/download/Coin_Collecter/88740747
x=0:pi/100:2*pi;
y=x.^2.*exp(2*x);
plot(x,y);
title('y=x^2e^{2x}');
xlabel('X轴');
ylabel('Y轴');
grid on;
? 句柄修改后的曲线
x=0: pi/100:2*pi;
y=x.^2.*exp(2*x);
h=plot(x,y);
title('y=x^2e^{2x}');
xlabel('X轴');
ylabel('Y轴');
text(6,6.^2.*exp(2.*6),'\leftarrow y=x^2e^{2x}');
set(h,'Color','r','LineStyle','--','LineWidth',2.0);
grid on;
x=0:0.1:30;
t=0:0.001:0.01;
[X,T]=meshgrid(x,t);
V=10*exp(-0.01*X).*sin(2000*pi*T-0.2*X+pi);
surf(X,T,V);
title('v(x,t)=10e^{-0.01x}sin(2000πt-0.2x+π)')
xlabel('X轴');
ylabel('T轴');
zlabel('V轴');
grid on;