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/07/04 23:30:36
![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](/uploads/image/z/11647780-52-0.jpg?t=matlab%E8%AE%A1%E7%AE%97erfc%E7%A7%AF%E5%88%86%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%88%E6%80%A5%21%EF%BC%89%E6%83%B3%E7%94%A8MATLAB%E8%AE%A1%E7%AE%97%E4%B8%8A%E5%BC%8F%E6%88%91%E5%9C%A8MATLAB%E4%B8%AD%E5%86%99%E7%9A%84%E6%98%AFL%3D0.482208146++%25diffusion+layerD%3D1e-3+++++++++%25diffusion+coefficient++++syms+y+x+t+a%3B+++++++y%3Derfc%28L%2F2%2Asqrt%28D%2Ax%29%29%2Aexp%28a%2A%28x-t%29%29%3B++%25+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类似