您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 半导体中载流子浓度的计算分析
functionvarargout=one(varargin)%ONEMATLABcodeforone.fig%ONE,byitself,createsanewONEorraisestheexisting%singleton*.%%H=ONEreturnsthehandletoanewONEorthehandleto%theexistingsingleton*.%%ONE('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinONE.Mwiththegiveninputarguments.%%ONE('Property','Value',...)createsanewONEorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeone_OpeningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtoone_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.ChooseGUIallowsonlyone%instancetorun(singleton).%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpone%LastModifiedbyGUIDEv2.521-Nov-201204:20:02%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@one_OpeningFcn,...'gui_OutputFcn',@one_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&ischar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---Executesjustbeforeoneismadevisible.functionone_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoone(seeVARARGIN)%Choosedefaultcommandlineoutputforonehandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesonewaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=one_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Getdefaultcommandlineoutputfromhandlesstructurevarargout{1}=handles.output;%---Executesonbuttonpressinpushbutton1.functionpushbutton1_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)m=1.6726*10^(-27);u=pi*4*10^(-7);k=1.38*10^(-23);h=6.626*10^(-34);E=0.039*1.6*10^(-19);n_sb1=0.99*10^(14);n_sb2=0.9*10^(14);n_sb3=0.5*10^(14);n_sb4=0.99*10^(17);n_sb5=0.9*10^(17);n_sb6=0.5*10^(17);c1=E/k;Nc=5.66*10^15;f=@(x)c1/x-log((Nc*0.01*x^(3/2))/(2*n_sb1));T1=fsolve(f,110)f=@(x)c1/x-log((Nc*0.1*x^(3/2))/(2*n_sb2));T2=fsolve(f,110)f=@(x)c1/x-log((Nc*0.5*x^(3/2))/(n_sb3));T3=fsolve(f,110)f=@(x)c1/x-log((Nc*0.01*x^(3/2))/(2*n_sb4));T4=fsolve(f,110)f=@(x)c1/x-log((Nc*0.1*x^(3/2))/(2*n_sb5));T5=fsolve(f,110)f=@(x)c1/x-log((Nc*0.5*x^(3/2))/(n_sb6));T6=fsolve(f,110)set(handles.edit1,'String',num2str(T1));set(handles.edit2,'String',num2str(T2));set(handles.edit3,'String',num2str(T3));set(handles.edit4,'String',num2str(T4));set(handles.edit5,'String',num2str(T5));set(handles.edit6,'String',num2str(T6));axes(handles.axes1);E=str2double(get(handles.edit7,'String'));nt=str2double(get(handles.edit8,'String'));n=10^nt;c1=(E*1.6*10^(-19))/k;i=0;d=0.01:0.01:0.99;fora=1:99ifa50f=@(x)c1./x-log((Nc.*(1-d(a)).*x^(3/2))./(n.*d(a)));elsef=@(x)c1./x-log((Nc.*(1-d(a)).*x^(3/2))./(2*n.*d(a)));endT=fsolve(f,100);TT(a)=T;endplot(d,TT);functionedit1_Callback(hObject,eventdata,handles)%hObjecthandletoedit1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofedit1astext%str2double(get(hObject,'String'))returnscontentsofedit1asadouble%---Executesduringobjectcreation,aftersettingallproperties.functionedit1_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endstr='10006016';set(gcf,'name',str,'numbertitle','off');functionedit2_Callback(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Hints:get(hObject,'String')returnscontentsofedit2astext%str2double(get(hObject,'String'))returnscontentsofedit2asadouble%---Executesduringobjectcreation,aftersettingallproperties.functionedit2_CreateFcn(hObject,eventdata,handles)%hObjecthandletoedit2(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled%Hint:editcontrolsusuallyhaveawhitebackgroundonWindows.%SeeISPCandCOMPUTER.ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundCo
本文标题:半导体中载流子浓度的计算分析
链接地址:https://www.777doc.com/doc-2642546 .html