Can't remove xlabel from top graph

68 views (last 30 days)
Thomas Koelen
Thomas Koelen on 2 Apr 2015
Commented: Thomas Koelen on 2 Apr 2015
Picture here:
I cant seem to delete the top graphs xlabel that says X,
what I tried is:
set(handles.axes1, 'XTickLabel', [])
set(gca, 'XTickLabel', [])
none of these work.
Does anyone know why?

Answers (1)

Titus Edelhofer
Titus Edelhofer on 2 Apr 2015
I guess mixing some of the techniques should work. Try
xlabel(handles.axes1, '');
  1 Comment
Thomas Koelen
Thomas Koelen on 2 Apr 2015
Solved it myself already! Had the xlabel('') above the plot function, so it didnt work.
Thanks anyways!
kind regards

Sign in to comment.


Find more on Labels and Annotations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!