xlabel,ylabel title not displaying

23 visualizaciones (últimos 30 días)
Samy Haby
Samy Haby el 25 de Sept. de 2018
Comentada: Ramón Tamino Uhl el 17 de Dic. de 2020
I=9.54*(10.^-7) %m.^4
E=22*10^9 %Gp
L=3.6 %meters
q=(8.3*10.^3) %kNewtons
x=[0:0.1:0.78]
y= (q/24*E*I)*(x.^4 + 2*L*x.^3 + x*L.^3)
plot(x,y)
grid on
title= ('The vertical vs x axis');
ylabel= ('The vertical');
xlabel= ('The horizontal x axis');
not sure why any of the labels are not showing up

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 25 de Sept. de 2018
should be
title('The vertical vs x axis');
ylabel('The vertical');
xlabel('The horizontal x axis');
  5 comentarios
Daniel Tscharner
Daniel Tscharner el 11 de En. de 2020
Hello everyone, I tried using clearvars and the plot still doesn't show plot labels.
title('Line Plot of Sine and Cosine Between -2\pi and 2\pi');
xlabel('x-axis');
ylabel('y-axis');
Ramón Tamino Uhl
Ramón Tamino Uhl el 17 de Dic. de 2020
I have the same problem in a For-loop.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Axis Labels en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by