how to change the position of the output result in GUI

조회 수: 2 (최근 30일)
Jwana
Jwana 2012년 12월 22일
Does any one here have an idea about how to change the position of output in the GUI matlab to be to the right side of the box and not in the center ?
i think I have to change some properties of the result text box
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 12월 22일
Is this a text() or a uicontrol('Style', 'text') ?
Jwana
Jwana 2012년 12월 23일
Thank you Walter.. Image Analyst had answered my Question :):)

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

채택된 답변

Image Analyst
Image Analyst 2012년 12월 22일
편집: Image Analyst 2012년 12월 23일
Change the position property if you need to specify the location or size of a static text label. For example, to have the text label take up the whole bottom part of a figure, use:
set(handleToTextControl, 'Position', [0 0, 1, 0.1]); % Full width, 1/10th height.
If you already have a text label that is the size and location that you need, then perhaps all you need to do is to set the horizontal alignment (justification). To have the text all the way over to the right in that text label, set the'HorizontalAlignment' property:
set(handleToTextcontrol, 'HorizontalAlignment', 'right'); % Right justify.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by