uipanel does not appear in GUI

1 回表示 (過去 30 日間)
Lawson Hoover
Lawson Hoover 2012 年 11 月 14 日
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 日
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 日
That was the problem, thank you!

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by