Borrar filtros
Borrar filtros

axis on plot not displaying

2 visualizaciones (últimos 30 días)
Holden Earl
Holden Earl el 14 de Abr. de 2020
Comentada: Holden Earl el 14 de Abr. de 2020
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel = 'time';
ylabel = 'fish';
I have tried using "xlabel('time');" but nothing seems to work, the graph will display and no error will be shown but the labels wont come up?

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Abr. de 2020
a = (1:100);
b = (a.^2);
plot(a,b)
xlabel('time')
ylabel('fish')
  2 comentarios
Walter Roberson
Walter Roberson el 14 de Abr. de 2020
Before that,
clear xlabel ylabel
just in case you still have the variables xlabel and ylabel stuck in your workspace.
Holden Earl
Holden Earl el 14 de Abr. de 2020
Got it now, thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by