您好,如下程序
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'
可以解决吗?万分感谢。。。。。。

 Akzeptierte Antwort

toyica
toyica am 16 Nov. 2022

0 Stimmen

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)

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 16 Nov. 2022

Beantwortet:

am 16 Nov. 2022

Community Treasure Hunt

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

Start Hunting!