Matlab u(x,t)=sin(5*pi*x)cos(5*pi*t)+2sin(7*pi*x)cos(7*pi*t) 其中0
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 19:25:52
x)M,ILR(ը)Ѵ-0*ԪL/0K4@qsmOv5I*҇fSf~
cӎY@|ϴm3jy/?l\4C/WxiGө]zOvt?[O?ٽ
h"Ĝk(7(-V 32KR55!2iE
%
z@lU djPɋZH~ZU_6G'@0I2#?'E!?"6#XZ
@ũ 7h"\_\gJ B
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