MATLAB CODE FOR ploting

Thread Starter

Ahmad Alomari

Joined Mar 22, 2012
8
please help me to plot the figure attached by matlab..which represents the charge density in the junction region of p-n junction
and thanks all.. thanks thanks thaaaaanks
 

Attachments

Thread Starter

Ahmad Alomari

Joined Mar 22, 2012
8
this is the formulas of the two figures please help me..really thanks a lot..
---
I attached them in a photos
---
please heeeeeeeeeeeeelp :(
---
help...pleaseeee
 
Last edited by a moderator:

steveb

Joined Jul 3, 2008
2,436
Matlab has many plotting tools. It also has good help information. Look up commands such as plot, title, xlabel, ylabel, axis, legend, semilogx, semilogy, plottools, loglog, and grid.

You also need to understand simple programming to convert your formula into a data set that can be plotted. A simple program that could plot the function y=x^2 over the range -5<x<+5 would be as follows.

Rich (BB code):
i=1:100;
x=-5+10*i/100;
y=x.^2;
plot(x,y)
title('Plot of the function y=x^2')
xlabel('x-axis')
ylabel('y-axis')
 

steveb

Joined Jul 3, 2008
2,436
thanks very much..but what about my two figures ?
You have to learn the commands and the programming methods to figure out how to make your two figures. The best way to learn is by doing. Try the commands. Go step by step. Make mistakes. Correct your mistakes. Post examples of your code here when you get stuck. Etc.
 
Top