matlab计算erfc积分的问题(急!)想用MATLAB计算上式我在MATLAB中写的是L=0.482208146 %diffusion layerD=1e-3 %diffusion coefficient syms y x t a; y=erfc(L/2*sqrt(D*x))*exp(a*(x-t)); % the function that is integrate

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 00:00:01
matlab计算erfc积分的问题(急!)想用MATLAB计算上式我在MATLAB中写的是L=0.482208146  %diffusion layerD=1e-3         %diffusion coefficient    syms y x t a;       y=erfc(L/2*sqrt(D*x))*exp(a*(x-t));  % the function that is integrate
xTQOP+3-cmnà<>۵Χ fE&#71ϴ]_3Bپsw{Η e xA{ |8ΫV{:믺[g5w`6oNc?:E&α,KIRePCB1f8j](C Ib*&U, S k@jtf撁 q+#KxԚPXFTU!h 0bT2FTJ,,N)Oz2 X1д]ְf&$* YF?#Ba"ЦRR". ϰ?+b<ðY^`y茿J́˳RTN)!#ݗn% dZ4D2'̊ `gy^BM zvoHn O2iU0*]IHJ`B`bAkXvZF$;x KPѹEr`8OUIB heC EhaOdw}npn`w"lv 5JScq׍R+TI.d />twz?yhxW=yp]֗ƜߏZ@rٴkk$mOu| NѱhS\0?$;

matlab计算erfc积分的问题(急!)想用MATLAB计算上式我在MATLAB中写的是L=0.482208146 %diffusion layerD=1e-3 %diffusion coefficient syms y x t a; y=erfc(L/2*sqrt(D*x))*exp(a*(x-t)); % the function that is integrate
matlab计算erfc积分的问题(急!)

想用MATLAB计算上式
我在MATLAB中写的是

L=0.482208146  %diffusion layer
D=1e-3         %diffusion coefficient   
syms y x t a;       
y=erfc(L/2*sqrt(D*x))*exp(a*(x-t));  % the function that is integrated
nt(y,x,0,t)      %function above is integrated from 0 to t但
是运行时候显示? Undefined function or method 'erfc' for input arguments of type 'sym'.

matlab计算erfc积分的问题(急!)想用MATLAB计算上式我在MATLAB中写的是L=0.482208146 %diffusion layerD=1e-3 %diffusion coefficient syms y x t a; y=erfc(L/2*sqrt(D*x))*exp(a*(x-t)); % the function that is integrate
erfc要求数据是实数,MATLAB默认syms是复数形势,所以不适用;syms x real 就能把x定义为实数了,这样应该就可以了,t,a类似