I answer myself: You have to set every control property to 'Off' in the panel.
set(findall(handles.uipanel1,'Visible','On'),'Visible','Off'); set(handles.uipanel1,'Visible','Off'); set(handles.uipanel2,'Visible','On');
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!