For Programmers: Free Programming Magazines  


Home > Archive > Matlab > January 2008 > function surf in GUIDE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author function surf in GUIDE
Dani Ribas

2008-01-30, 8:20 pm

Hi again,

I have a problem with a GUI made with GUIDE. In my GUI there
are several panels that are visible when the user pushes the
correct button. In one of these panels I've placed axes
(called axes_earth) in which I want to display a 3D image of
the Earth. For that I use the command:

[x,y,z] = sphere(50);
surf(handles.axes_earth,x,y,z);
h = findobj('Type','surface');
set(h,'CData',handles.earth,'FaceColor','texturemap');

where handles.earth is the image of the Earth.

The problem is that when the command surf is executed, all
static text, pushbutton or popup menus disappear from the
GUI and I don't know why. Any idea?

Thanks.
Dani Ribas

2008-01-31, 5:27 am

Well, I think I've solved it. The problem was in the
position vector [x y width height] of some panels and
axes. I've run the GUI in another computer with a
different screen resolution and it worked.

Thanks anyway.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com