²é¿´: 410  |  »Ø¸´: 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)
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zpzgraduate

Ìú¸Ëľ³æ (ÖøÃûдÊÖ)

×Ô¼º¶¥Ò»Ï£¬Çë¸ßÈ˽â´ð
2Â¥2013-07-01 05:49:22
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ zpzgraduate µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 286·ÖÈ˹¤ÖÇÄÜרҵÇëÇóµ÷¼ÁÔ¸Òâ¿ç¿¼£¡ +3 lemonzzn 2026-03-17 5/250 2026-03-21 11:28 by lemonzzn
[¿¼ÑÐ] ²ÄÁÏ 271Çóµ÷¼Á +3 Õ¹ÐÅÔÃ_ 2026-03-21 3/150 2026-03-21 10:17 by ÍõЦÓîÒ»¶¨ÊÇÑо
[¿¼ÑÐ] ²ÄÁϹ¤³Ì£¨×¨£©Ò»Ö¾Ô¸985 ³õÊÔ335Çóµ÷¼Á +3 hiloiy 2026-03-17 4/200 2026-03-21 03:04 by JourneyLucky
[¿¼ÑÐ] 083200ѧ˶321·ÖÒ»Ö¾Ô¸ôßÄÏ´óѧÇóµ÷¼Á +3 innocenceF 2026-03-17 3/150 2026-03-21 02:35 by JourneyLucky
[¿¼ÑÐ] ³õʼ318·ÖÇóµ÷¼Á£¨Óй¤×÷¾­Ñ飩 +3 1911236844 2026-03-17 3/150 2026-03-21 02:33 by JourneyLucky
[¿¼ÑÐ] 271²ÄÁϹ¤³ÌÇóµ÷¼Á +8 .6lL 2026-03-18 8/400 2026-03-21 00:58 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ÖØÇì´óѧ085700×ÊÔ´Óë»·¾³×¨Ë¶£¬×Ü·Ö308Çóµ÷¼Á +3 īīĮ 2026-03-18 3/150 2026-03-21 00:39 by JourneyLucky
[¿¼ÑÐ] ²ÄÁÏרҵÇóµ÷¼Á +6 hanamiko 2026-03-18 6/300 2026-03-21 00:24 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸ÖÐÄÏ»¯Ñ§£¨0703£©×Ü·Ö337Çóµ÷¼Á +8 niko- 2026-03-19 9/450 2026-03-20 21:57 by luoyongfeng
[¿¼ÑÐ] 260Çóµ÷¼Á +3 ÖìÜÆÁÕ 2026-03-20 3/150 2026-03-20 20:35 by ѧԱ8dgXkO
[¿¼ÑÐ] 289Çóµ÷¼Á +6 »³èªÎÕè¤l 2026-03-20 6/300 2026-03-20 20:30 by ѧԱ8dgXkO
[¿¼ÑÐ] ¹¤¿Æ²ÄÁÏ085601 279Çóµ÷¼Á +7 À§ÓÚÐdz¿ 2026-03-17 9/450 2026-03-20 17:38 by ÎÞи¿É»÷111
[¿¼ÑÐ] 085601²ÄÁϹ¤³Ìר˶Çóµ÷¼Á +10 Ľº®mio 2026-03-16 10/500 2026-03-19 15:26 by ¶¡¶¡*
[¿¼ÑÐ] ±¾¿ÆÖ£ÖÝ´óѧÎïÀíѧԺ£¬Ò»Ö¾Ô¸»ª¿Æ070200ѧ˶£¬346Çóµ÷¼Á +4 ÎÒ²»ÊÇÒ»¸ù´Ð 2026-03-18 4/200 2026-03-19 09:11 by ¸¡ÔÆ166
[¿¼ÑÐ] 311Çóµ÷¼Á +11 ¶¬Ê®Èý 2026-03-15 12/600 2026-03-18 14:36 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] 334Çóµ÷¼Á +3 Ö¾´æ¸ßÔ¶ÒâÔÚ»úÐ 2026-03-16 3/150 2026-03-18 08:34 by lm4875102
[¿¼ÑÐ] 308Çóµ÷¼Á +4 ÊÇLupa°¡ 2026-03-16 4/200 2026-03-17 17:12 by ruiyingmiao
[¿¼ÑÐ] ²ÄÁϹ¤³Ìר˶274Ò»Ö¾Ô¸211Çóµ÷¼Á +6 Ñ¦ÔÆÅô 2026-03-15 6/300 2026-03-17 11:05 by ѧԱh26Tkc
[¿¼ÑÐ] 26¿¼ÑÐÒ»Ö¾Ô¸ÖйúʯÓÍ´óѧ(»ª¶«)305·ÖÇóµ÷¼Á +3 ¼ÎÄêÐÂ³Ì 2026-03-15 3/150 2026-03-15 13:58 by ¹þ¹þ¹þ¹þºÙºÙºÙ
[¿¼ÑÐ] ±¾¿ÆÄϾ©´óѧһ־Ը´¨´óҩѧ327 +3 ÂóÌï¸ûÕß 2026-03-14 3/150 2026-03-14 20:04 by ÍâÐÇÎÄÃ÷
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û