qiushidaren
Full Member level 2
how to plot iv curve
Hi all, I want to plot an i-v curve of this equation i=100*[1.3-v+500*(5-i)]^2 by using Matlab, but unfortunately it looks that the plot I get isn’t the one that I want, so I think there must be something wrong but I don’t know it. Your suggestions and comments will be highly appreciated!
Here is my code:
Hi all, I want to plot an i-v curve of this equation i=100*[1.3-v+500*(5-i)]^2 by using Matlab, but unfortunately it looks that the plot I get isn’t the one that I want, so I think there must be something wrong but I don’t know it. Your suggestions and comments will be highly appreciated!
Here is my code:
%current versus voltage curve
v=0:0.1:3;
i=100*[1.3-v+500*(5-i)].^2;
plot(v,i)
title('current versus voltage of 2.6(c)')
xlabel('Voltage(V)')
ylabel('Current(uA)')
grid