필터 지우기
필터 지우기

How to plot with ticks but without figures

조회 수: 3 (최근 30일)
Konstantin Shchukin
Konstantin Shchukin 2023년 9월 29일
답변: Dyuman Joshi 2023년 9월 29일
I would like to plot arbitary units, that's why I would like to keep ticks indicated, but remove numbers near them. How can I realise it?

답변 (1개)

Dyuman Joshi
Dyuman Joshi 2023년 9월 29일
Remove the tick labels -
%Example
%Plot
fplot(@(x) sin(x), [-5 5])
%Adjust ticks
xticks(-5:0.5:5)
%Remove the tick labels
xticklabels([])

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by