How to draw this graph using matlab code ignore the labeling

 采纳的回答

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 个评论

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!

请先登录,再进行评论。

更多回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Chemistry 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by