How to access 'TextBox' in viewArray figure

조회 수: 13 (최근 30일)
Chen
Chen 2017년 12월 19일
댓글: Chen 2017년 12월 22일
After viewArray plot the array structure, I would like to move the position of the 'TestBox' in the figure, but I do not know how to access the Position of the 'TextBox'. Please see attached example, I like to move the 'TextBox' at right-low corner to other position in the figure

채택된 답변

Honglei Chen
Honglei Chen 2017년 12월 21일
Once you run viewArray, you can do
findall(gcf,'Type','TextBox')
It should return the all text boxes in the figure and you can find the one corresponding to the annotation. Then simply set the Position property of that handle and you can move the box.
HTH
  댓글 수: 1
Chen
Chen 2017년 12월 22일
Thanks HTH: it works. Happy holiday season! Chen

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Array Geometries and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by