您好,如下程序
T=10:5:400
fun='2.8*10^3*((T/300).^1.5)*exp(300*Ef/(0.026*T))-1.1*10^3*((T/300).^1.5)*exp((-1.17-Ef)*300/(0.026*T))-1.0/(1+2*exp((Ef+0.04)*300/(0.026*T)))';
z=fzero(fun,-0.03);
如果带入确定的T的值可以进行计算,但如上程序不能运行,显示 Undefined function or variable 'T'
可以解决吗?万分感谢。。。。。。

 Réponse acceptée

toyica
toyica le 16 Nov 2022

0 votes

fun=@(T,Ef)2.8*10^3*((T/300).^1.5)*exp(300*Ef/(0.026*T))-1.1*10^3*((T/300).^1.5)*exp((-1.17-Ef)*300/(0.026*T))-1.0/(1+2*exp((Ef+0.04)*300/(0.026*T)));
arrayfun(@(T) fzero(@(Ef) fun(T,Ef),-0.03),10:4:400)

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!