uipanel does not appear in GUI

1 view (last 30 days)
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],...
'name','For Loop Matrix Generator',...
S.Pa1 = uipanel('Title','Input Values #1',...
'Position',[1/20 1/20 119.9 8],...
May you please see what is wrong with the code? Thanks in advance.
  1 Comment
Jan on 14 Nov 2012
Edited: Jan on 15 Nov 2012
Please use meaningful tags: Nearly All questions in this forum concern "matlab code".
Do you get an error message?

Sign in to comment.

Accepted Answer

Akiva Gordon
Akiva Gordon on 15 Nov 2012
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.

More Answers (1)

Lawson Hoover
Lawson Hoover on 15 Nov 2012
That was the problem, thank you!


Find more on Loops and Conditional Statements in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by