Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Daniel Nsek
Daniel Nsek el 21 de Sept. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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)

Respuestas (1)

dpb
dpb el 21 de Sept. de 2018
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 comentarios
Daniel Nsek
Daniel Nsek el 21 de Sept. de 2018
it should be xticks
dpb
dpb el 21 de Sept. de 2018
Yes... :)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by