Info
This question is closed. Reopen it to edit or answer.
How to solve this equation in Matlab
2 views (last 30 days)
Show older comments
capacitance2=@(e,vch)1.602*10^-10*((2*q^2)/(4*k*T*pi*((hbar*v)^2)))*((sqrt(2/pi)*s.*exp(-(e.^2)/(2*s^2))+(e.*(erf((e)/(sqrt(2)*s))))).*(sech((e-(vch*q))/(2*k*T)).^2));
eqn=vch+((integral2(capacitance2,-inf,inf,0,vch))/(cpad))+vdirac==vgate; %Here vdirac, cpad and vgate are known and constant
m=solve(eqn,vch)
%There is an error coming as defined a variable to solve equation.
Answers (1)
Adam Setters
on 26 Jul 2016
Edited: Adam Setters
on 26 Jul 2016
You need to use the symbolic toolbox and declare vch and any other unknowns as symbolic variables.
These two links should help: http://www.mathworks.com/help/symbolic/create-symbolic-numbers-variables-and-expressions.html
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!