matlab里面的fun函数。

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

 Risposta accettata

toyica
toyica il 16 Nov 2022

0 voti

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)

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Tag

Richiesto:

il 16 Nov 2022

Risposto:

il 16 Nov 2022

Community Treasure Hunt

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

Start Hunting!