Undefined function or variable 'datatip'

조회 수: 2 (최근 30일)
Viraj Gandhi
Viraj Gandhi 2020년 7월 21일
댓글: Viraj Gandhi 2020년 7월 21일
Hi. I tried the simple code to create datatips. I got the error saying: Undefined function or variable 'datatip'. The following code is directly taken from the link: https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatip.html#mw_f151e337-0a8a-481d-9217-9a44942a3946.
Do I need to download a tool or an extension?
x = linspace(0,10,11);
y = x.^2;
sc = scatter(x,y);
dt = datatip(sc,7,49);

채택된 답변

Rik
Rik 2020년 7월 21일
The datatip function was introduced in R2019b, so you will have to find an external implementation (or write it yourself), or upgrade to the newer Matlab release.
  댓글 수: 1
Viraj Gandhi
Viraj Gandhi 2020년 7월 21일
Thank you! I will download the new version.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by