how to enable label in x and y axis of this graph

8 visualizaciones (últimos 30 días)
Ashis Pandey
Ashis Pandey el 13 de Jun. de 2022
Respondida: Dhritishman el 15 de Jun. de 2022
hello, this graph (figure 3/in the middle) doesnt have any label... x-axis is supposed to be distance. Maybe the software was already made this way but if labels are hidden, can we unhide it? can we enable label somewhere? or its just that we have to create label ourselves? (I was expecting this to have its own label)
  2 comentarios
KSSV
KSSV el 14 de Jun. de 2022
You can just use xlabel right?
Ashis Pandey
Ashis Pandey el 14 de Jun. de 2022
No I thought I can use both?

Iniciar sesión para comentar.

Respuestas (2)

Cris LaPierre
Cris LaPierre el 14 de Jun. de 2022
Personally, I would do it programmatically. However, you can also use the Insert menu.

Dhritishman
Dhritishman el 15 de Jun. de 2022
Matlab provides two functions - xlabel and ylabel to label the x-axis and y-axis in the graph respectively.
Syntax:
xlabel(txt)
xlabel(target,txt)
xlabel(___,Name,Value)
t = xlabel(___)
You can refer to the following documentation to get more information about the xlabel function.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by