How to draw this graph using matlab code ignore the labeling

 Accepted Answer

t=1:.1:8;
y=log(t);
y(t>5)=0;
plot(t,y,'b','linewidth',1);
set(gca,'YTickLabel',[]);
xlabel('Energy');
ylabel('D(E)'); %You can insert signma also, try it
tt.png
MVPs, I don't know what I am doing..I have no clue. Is there any sense to producing the graph like this? From the labels, it seems the plots related to statistical mechanics /quantum mechanics.

2 Comments

yes sir, it is quantum mechanics work. I dont know how to use matlab but my lecturer ask me to plot graph using it. how do i plot this then? adding another red line graph on it Untitled.png
Hey, read the literature (Energy vs density of states), there may be relation between energy and density of states (D), May be when T>0, the graph behave as red line.
D(E)= Function of (Energy,T, and other terms etc)
Define E (Energy) and all other terms
Calculate D(E) with respect to different values of E
plot(E,D_E)
Discuss with your teacher, regarding Mathematical expression and typical values of all other terms. If you do that, the plot implementation on Matlab, hardly takes 5-10 min.
Is this related to this one, not sure
Good Wishes! Keep Learning!

Sign in to comment.

More Answers (1)

Find a similar plot at the MATLAB Plot Gallery, copy the code from there, and adapt it to your case.

Categories

Find more on Chemistry in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!