| 查看: 390 | 回复: 1 | ||
zpzgraduate铁杆木虫 (著名写手)
|
[求助]
matlab求解偏微分方程组遇到的问题求助
|
|
求解偏微分方程组时遇到的,请高手指点。 下面是文件和错误提示 function pdex4 m = 0; x = [0 0.005 0.01 0.05 0.1 0.2 0.5 0.7 0.9 0.95 0.99 0.995 1]; t = [0 0.005 0.01 0.05 0.1 0.5 1 1.5 2]; sol = pdepe(m,@pdex4pde,@pdex4ic,@pdex4bc,x,t); u1 = sol(:,:,1); u2 = sol(:,:,2); u3=sol(:,:,2); figure surf(x,t,u1) title('u1(x,t)') xlabel('Distance x') ylabel('Time t') figure surf(x,t,u2) title('u2(x,t)') xlabel('Distance x') ylabel('Time t') figure surf(x,t,u3) title('u3(x,t)') xlabel('Distance x') ylabel('Time t') % -------------------------------------------------------------- function [c,f,s] = pdex4pde(x,t,u,DuDx) c = [1; 1;1]; f = [0; 0;0] .* DuDx; F = 6*u(3); s = [-F*u(1); u(2)*F;-20000*u(1)-2-4*u(2)]; % -------------------------------------------------------------- function u0 = pdex4ic(x); u0 = [0.03;0;0]; % -------------------------------------------------------------- function [pl,ql,pr,qr] = pdex4bc(xl,ul,xr,ur,t) pl = [0; ul(2)-1;0]; ql = [1; 1;1]; pr = [ur(1)-1; 0;0]; qr = [1;1;1]; 错误信息 Warning: Failure at t=1.497828e-002. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.775558e-017) at time t. > In ode15s at 809 In pdepe at 317 In pdefun001 at 6 Warning: Time integration has failed. Solution is available at requested time points up to t=1.000000e-002. > In pdepe at 323 In pdefun001 at 6 ??? Error using ==> surf at 78 Data dimensions must agree. Error in ==> pdefun001 at 12 surf(x,t,u1) |
» 猜你喜欢
博士申请都是内定的吗?
已经有14人回复
博士申请
已经有3人回复
投稿返修后收到这样的回复,还有希望吗
已经有5人回复
谈谈两天一夜的“延安行”
已经有13人回复
假按揭大家大家的就假按揭大家大家的就
已经有3人回复
氨基封端PDMS和HDI反应快速固化
已经有11人回复
之前让一硕士生水了7个发明专利,现在这7个获批发明专利的维护费可从哪儿支出哈?
已经有11人回复
论文投稿求助
已经有4人回复
Applied Surface Science 这个期刊。有哪位虫友投过的能把word模板发给我参考一下嘛
已经有3人回复
投稿精细化工
已经有6人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab如何求解一个非线性微分方程组
已经有8人回复
求助,用matlab解微分方程组,希望高手能给予指点
已经有17人回复
matlab解偏微分方程求助
已经有12人回复
求助:如何用MATLAB的偏微分方程工具箱画出不同区域内的温度分布图?
已经有5人回复
matlab求解偏微分方程组
已经有3人回复
matlab有限差分法求解复杂的偏微分方程组
已经有19人回复
matlab微分方程组参数拟合,以周为单位求解,汇总后以年为单位进行数值比较
已经有4人回复
Matlab求解偏微分方程组
已经有22人回复
matlab数值求解边界条件微分方程组
已经有7人回复
高金求助matlab解微分方程组
已经有12人回复
matlab解微分方程组
已经有15人回复
【求助】matlab 求解微分方程中的未知参数
已经有20人回复
【求助】向各位大侠求助matlab求解微分方程组遇到的一个问题
已经有21人回复
【求助】MATLAB 有限差分法(FDM)求解偏微分方程
已经有22人回复
【求助】积分微分方程matlab求解
已经有6人回复
【求助】如何求解下列偏微分方程
已经有13人回复
【求助】matlab怎么求解偏微分方程组啊,先谢谢了
已经有13人回复
zpzgraduate
铁杆木虫 (著名写手)
- 应助: 7 (幼儿园)
- 金币: 14109.8
- 散金: 40
- 帖子: 1152
- 在线: 202.1小时
- 虫号: 116996
- 注册: 2005-11-25
- 专业: 聚合物共混与复合材料
2楼2013-07-01 05:49:22













回复此楼