I tried the following command in Matlab 2013a and Matlab 2014a to remove the tick labels:
plot(1:10, 1);
set(gca,'YTickLabel',[]);
This works perfectly. In Matlab 2015a, I get the following error:
Error using set
Conversion to double from struct is not possible.
Is this a bug or am I doing something wrong?

 채택된 답변

Guillaume
Guillaume 2015년 8월 20일

0 개 추천

Most likely, you've created a variable called gca that is a structure and shadowing the gca function.
which gca
will tell you for sure

댓글 수: 1

Jeroen Beeckman
Jeroen Beeckman 2015년 8월 21일
Thank you! A 'clear all' resolved the problem indeed

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

질문:

2015년 8월 20일

댓글:

2015년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by