Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Why arent the labels and ticks being ran in my code?

조회 수: 1 (최근 30일)
Daniel Nsek
Daniel Nsek 2018년 9월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
x=[0.7,3.4,4.2,8.8,7.4];
y=[-39,680,1538,3410,3551];
ylabel('Melting Temperature in Celsius');
xlabel('Bonding Energy in eV/atom');
title('Bonding Energy vs Temperature');
yticks(0:.5:8);
plot(x,y)

답변 (1개)

dpb
dpb 2018년 9월 21일
Wrong order, call plot last or use
hold on
before plot to keep what's already been drawn.
BTW, I strongly suspect you don't mean yticks above with those values...
  댓글 수: 4
Daniel Nsek
Daniel Nsek 2018년 9월 21일
it should be xticks
dpb
dpb 2018년 9월 21일
Yes... :)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by