A GUI interface needs to be utilized asking for input data a
Solution
%clears screen and deletes all the variables in the workspace
clc;
clear;
%Ask for input the temperature
temp = input(\'Temperature in F or C or K: \', \'s\' );
vtemp=input(\'Enter value for temperature: \');
%converting temperature to K
switch(temp)
case \'F\'
K = (5/9) * (vtemp + 459.67);
case \'C\'
K = vtemp + 273.15;
case \'K\'
K = vtemp;
otherwise
fprintf(\'Invalid temp\');
end
%Calculating intrinsic carrier concentration ni
y = ( 2 * K * 86 * (10^(-6) );
nSi = ( 5.23 * (10^15) ) * ( x ) * ( 2.71828 ^ ( (-1.1) / y ) ) ;
disp(nSi)
nGaAs = ( 2.10 * (10^14) ) * ( x ) * ( 2.71828 ^ ( (-1.4) / y ) ) ;
disp(nGaAs)
nGe = ( 1.66 * (10^15) ) * ( x ) * ( 2.71828 ^ ( (-0.66) / y ) ) ;
disp(nGe)
temp = F
vtemp = 110
*********
Here the calcuation of intrinsic carrier concentration can also be written as follows
%Calculating intrinsic carrier concentration ni
nSi = ( 5.23 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-1.1) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;
disp(nSi)
nGaAs = ( 2.10 * (10^14) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-1.4) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;
disp(nGaAs)
nGe = ( 1.66 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) ) * ( 2.71828 ^ ( (-0.66) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;
disp(nGe)
nSi = ( 5.23 * (10^15) ) * ( ( 86 * (10^(-6) ) ^(3/2) ) * ( 2.71828 ^ ( (-1.1) / ( 2 * K * 86 * (10^(-6) ) ) ) ) ;


