MATLAB Answers


uipanel does not appear in GUI

Asked by Lawson Hoover on 14 Nov 2012

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 Simon
on 14 Nov 2012

Please use meaningful tags: Nearly All questions in this forum concern "matlab code".

Do you get an error message?



No products are associated with this question.

2 Answers

Answer by Akiva Gordon
on 15 Nov 2012
 Accepted answer

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.


Answer by Lawson Hoover on 15 Nov 2012

That was the problem, thank you!


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!