How to solve this equation in Matlab

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
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.

This question is closed.

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!