How can I plot the following

q = 1.602e-19;
k = 1.38e-23;
vD = -1.0:0.1:0.6; % Volatage increments
T = 125;
K = (T + 459.67) / 1.8; % Convoert Fahrenheight to Kelving
Io = 2.0e-6; % Micro Amps
iD = Io.*(exp(q.*vD/k.*K)-1);

2 Comments

What do you want to plot? x-absis ? y-absis ?
Both I ploted three graphs. They all look the same.

Sign in to comment.

Answers (1)

What do you want to plot? vD VS. iD?
plot(vD,iD)

3 Comments

I plotted three graphs. For plot one I input 297 degrees Kelvin, for plot 2 311 degrees Kelvin, and for plot three 324 degrees Kelvin. I also plot(vD, iD) but all three plots look the same. I tried using loglog(), semilogx(), but still I was not happy.
Elias, I think it's better to edit your question, put all the information needed there, instead of adding information in comment. Make your question as clear as possible, you will get the quickest answer.
Thank you

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 24 Oct 2013

Commented:

on 26 Oct 2013

Community Treasure Hunt

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

Start Hunting!