Matlab u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 19:05:58
Matlab u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0

Matlab u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0
Matlab
u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0

Matlab u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0
我刚刚编写的,调试过了没问题.给高点分啊.下次还可以问我.
clear all;
clc;
syms x
figure(1);
for t=[0 0.1 0.2]
u_x_t=sin(5*pi*x)*cos(5*pi*t)+2*sin(7*pi*x)*cos(7*pi*t);
ezplot(u_x_t,[0,1]);
hold on;
end
figure(2);
for t=0:0.01:2
u_x_t=sin(5*pi*x)*cos(5*pi*t)+2*sin(7*pi*x)*cos(7*pi*t);
ezplot(u_x_t,[0,1]);
hold on;
pause(0.01);
end