I can not get the uipanel to appear in my GUI. My code is:
function [] = Hoover_For_Loops1
S.fh = figure('units','pixels',...
'position',[400 200 600 400],...
'menubar','none',...
'name','For Loop Matrix Generator',...
'resize','off',...
'numbertitle','off');
S.Pa1 = uipanel('Title','Input Values #1',...
'FontSize','12',...
'BackgroundColor','white',...
'Units','characters',...
'Position',[1/20 1/20 119.9 8],...
'Parent',S.fh);
May you please see what is wrong with the code? Thanks in advance.

댓글 수: 1

Jan
Jan 2012년 11월 14일
편집: Jan 2012년 11월 15일
Please use meaningful tags: Nearly All questions in this forum concern "matlab code".
Do you get an error message?

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

 채택된 답변

Akiva Gordon
Akiva Gordon 2012년 11월 15일

2 개 추천

The value for the FontSize property must be numeric, not a character string. Remove the single quotes around the 12, and that should do the trick.

추가 답변 (1개)

Lawson Hoover
Lawson Hoover 2012년 11월 15일

0 개 추천

That was the problem, thank you!

카테고리

도움말 센터 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by