| 查看: 494 | 回复: 8 | |||
| 当前主题已经存档。 | |||
monitor2885至尊木虫 (职业作家)
队长
|
[交流]
【求助】help里面的例子怎么运行不了
|
||
|
function pdex1 m = 0; x = linspace(0,1,20); t = linspace(0,2,5); sol = pdepe(m,@pdex1pde,@pdex1ic,@pdex1bc,x,t); % Extract the first solution component as u. u = sol(:,:,1); % A surface plot is often a good way to study a solution. surf(x,t,u) title('Numerical solution computed with 20 mesh points.') xlabel('Distance x') ylabel('Time t') % A solution profile can also be illuminating. figure plot(x,u(end, )title('Solution at t = 2') xlabel('Distance x') ylabel('u(x,2)') % -------------------------------------------------------------- function [c,f,s] = pdex1pde(x,t,u,DuDx) c = pi^2; f = DuDx; s = 0; % -------------------------------------------------------------- function u0 = pdex1ic(x) u0 = sin(pi*x); % -------------------------------------------------------------- function [pl,ql,pr,qr] = pdex1bc(xl,ul,xr,ur,t) pl = ul; ql = 0; pr = pi * exp(-t); qr = 1; 在help里面调出pdepe,这是里面的第一例子。为什么第一个surf图正常,第二个平面图出错呢?大家帮忙试试 ??? Error using ==> plot Too many input arguments. Error in ==> pdex1 at 19 plot(x,u(end, )[ Last edited by monitor2885 on 2009-9-23 at 16:24 ] |
» 猜你喜欢
297求调剂
已经有12人回复
26调剂 086003
已经有3人回复
265求调剂
已经有20人回复
271分求调剂学校
已经有11人回复
320分人工智能调剂
已经有6人回复
求调剂,一志愿南京航空航天大学 ,080500材料科学与工程学硕
已经有8人回复
280求调剂
已经有19人回复
求材料调剂,一志愿郑州大学289分
已经有15人回复
26考研调剂0710 0860
已经有6人回复
282求调剂
已经有22人回复

change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
2楼2009-09-24 09:07:50
change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
★
nono2009(金币+0,VIP+0):谢谢。 9-24 12:30
monitor2885(金币+1,VIP+0):我是R14,运行出现上述错误,是不是版本问题啊 9-24 21:31
nono2009(金币+0,VIP+0):谢谢。 9-24 12:30
monitor2885(金币+1,VIP+0):我是R14,运行出现上述错误,是不是版本问题啊 9-24 21:31
| R2008a |
3楼2009-09-24 12:00:59
monitor2885
至尊木虫 (职业作家)
队长
- 应助: 6 (幼儿园)
- 贵宾: 0.339
- 金币: 39476
- 散金: 147
- 红花: 22
- 帖子: 4994
- 在线: 2174.2小时
- 虫号: 701577
- 注册: 2009-02-15
- 性别: GG
- 专业: 生态系统生态学

4楼2009-09-24 21:30:45
nono2009
超级版主 (文学泰斗)
No gains, no pains.
-

专家经验: +21105 - 仿真EPI: 1
- 应助: 28684 (院士)
- 贵宾: 513.911
- 金币: 2555230
- 散金: 27828
- 红花: 2148
- 沙发: 66666
- 帖子: 1602255
- 在线: 65200.9小时
- 虫号: 827383
- 注册: 2009-08-13
- 性别: GG
- 专业: 工程热物理与能源利用
- 管辖: 科研家筹备委员会
5楼2009-09-25 06:40:10
monitor2885
至尊木虫 (职业作家)
队长
- 应助: 6 (幼儿园)
- 贵宾: 0.339
- 金币: 39476
- 散金: 147
- 红花: 22
- 帖子: 4994
- 在线: 2174.2小时
- 虫号: 701577
- 注册: 2009-02-15
- 性别: GG
- 专业: 生态系统生态学

6楼2009-09-25 10:43:10
change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
7楼2009-09-25 13:07:53
monitor2885
至尊木虫 (职业作家)
队长
- 应助: 6 (幼儿园)
- 贵宾: 0.339
- 金币: 39476
- 散金: 147
- 红花: 22
- 帖子: 4994
- 在线: 2174.2小时
- 虫号: 701577
- 注册: 2009-02-15
- 性别: GG
- 专业: 生态系统生态学

8楼2009-09-25 15:28:31
9楼2009-10-02 12:46:22














)
回复此楼