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/05/10 20:25:14
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 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类似