Page 1 of 1
The first argument must be a figure or a uipanel
Posted: Sat Jun 17, 2017 6:55 am
by matlab1
The first argument must be a figure or a uipanel
The second argument must be a valid layer name
Re: The first argument must be a figure or a uipanel
Posted: Sun Jan 10, 2021 12:19 pm
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