How to turn off X axis while keeping the X axis grid lines?
37 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/790599/image.jpeg)
set(gca,'XTick',[],'fontweight' , 'bold','fontsize',12); xlim([0 122]); grid on ;
0 Comments
Accepted Answer
Sudharsana Iyengar
on 5 Nov 2021
Hi
Please try this and see if this is what you wanted.
grid on
set(gca,'Xticklabel',{})
More Answers (1)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!