Removing Xaxis and Yaxis values

1.653 views (last 30 days)
Hey I have plotted a graph but I want to remove the values on the axis, I don't want the numbers to show

Accepted Answer

Chenchal
Chenchal on 3 Nov 2017
% code
x = rand(1,100);
plot(x);
set(gca,'XTick',[], 'YTick', [])
  2 Comments
Kyril Kaufmann
Kyril Kaufmann on 6 Jun 2020
% gca = ax
set(ax,'xticklabel',[])

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by