How to change size of Axes in matlab GUI to pixel units?

조회 수: 3 (최근 30일)
Tina
Tina 2013년 8월 25일
Hello
I am new to MATLAB GUI. I have an axes component in my GUI. I want to have it in such a way that it shows a 50x50 pixel. How can I do this

답변 (2개)

Jan
Jan 2013년 8월 25일
set(AxesHandle, 'Units', 'pixels', 'Position', [10, 10, 50, 50]);

Walter Roberson
Walter Roberson 2013년 8월 25일
See http://www.mathworks.com/help/matlab/ref/axes_props.html and decide whether you want to work with Position or InnnerPosition or OuterPosition for your "50 x 50".
  댓글 수: 1
Tina
Tina 2013년 8월 25일
yes but I don't know how to change this to pixels.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by