필터 지우기
필터 지우기

problem with menu

조회 수: 1 (최근 30일)
Maurizio
Maurizio 2011년 12월 23일
is it possible to increase the size of the windows, font, and display on the center of the scree the MENU interface because for example when i'm using the below code the menu appear on the top left and with font to small. insdati=menu('Can you please help me?','Yes','No')

채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 12월 23일
There is no such options in menu. I suggest you to copy and edit this function. It is located in folder:
matlabroot/toolbox/matlab/uitools
To display on the center of the screen, you can e.g. replace this lines:
%====================================================================
% ACTIVATE
%=========================================================================
% Make figure visible
%------------------------------------------------------------------------
set( menuFig, 'Visible', 'on' );
with:
%=========================================================================
% ACTIVATE
%=========================================================================
% Make figure visible
%------------------------------------------------------------------------
movegui(menuFig,'center')
set( menuFig, 'Visible', 'on' );
To change other parameters you need to change the relevant parts of the function.
  댓글 수: 5
Maurizio
Maurizio 2011년 12월 23일
can you please also help me for the size and the font?
Maurizio
Maurizio 2011년 12월 23일
I modify thw size I would like to create the size of the font.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by