I need to plot an integral function n over 1.1 to Etop and it is keep saying there are too many inputs. I think I am not using syms function properly. Please help.
Etop = linspace(1.1, 1.4, 1000);
syms E; n = int(sqrt(E-1.1)/(1+exp((E-.86)/.2586)), 1.1, Etop, 'IgnoreSpecialCases', true)
figure plot(Etop, log(.558*n)) xlabel('Etop (eV)') ylabel('log(n) (cm^-3)')

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 9월 6일

0 개 추천

variant 1
xtop = linspace(1.1, 1.4, 1000)';
y = arrayfun(@(i1)quad(@(x)sqrt(x-1.1)./(1+exp((x-.86)/.2586)),1.1,i1),xtop);
figure, plot(xtop, log(.558*y)), xlabel('Etop (eV)'), ylabel('log(n) (cm^-3)')

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Special Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by