필터 지우기
필터 지우기

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

조회 수: 8 (최근 30일)
Ashis Pandey
Ashis Pandey 2022년 6월 13일
답변: Dhritishman 2022년 6월 15일
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
KSSV
KSSV 2022년 6월 14일
You can just use xlabel right?
Ashis Pandey
Ashis Pandey 2022년 6월 14일
No I thought I can use both?

댓글을 달려면 로그인하십시오.

답변 (2개)

Cris LaPierre
Cris LaPierre 2022년 6월 14일
Personally, I would do it programmatically. However, you can also use the Insert menu.

Dhritishman
Dhritishman 2022년 6월 15일
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.

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by