The first argument must be a figure or a uipanel

Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

The first argument must be a figure or a uipanel

Post by matlab1 »

The first argument must be a figure or a uipanel


The second argument must be a valid layer name
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: The first argument must be a figure or a uipanel

Post by matlab1 »

p = uipanel

creates a panel in the current figure and returns the Panel object. If there is no figure available, MATLAB® calls the figure function to create one.

https://www.mathworks.com/help/matlab/ref/uipanel.html

h = figure

creates a handle to a figure.

Solution:

Use one of these methods
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests