Matlab program to plot VI characteristics of a diode
clc;
close all;clear all;
a=input('Enter the temperatre in degree centigrade ');
b=input('Enter the reverse saturation current at room temperature ');
q=1.6e-19;
k=1.38e-23;
t=a+273;
v=-0.2:0.01:0.25;
i=b*(exp(q*v/(k*t))-1);
plot(v,i)
xlabel('Voltage -->')
ylabel('Current -->')
grid on;
Comments
Post a Comment