From: praveen on
Hi,
Is there any way to create a table or grid on a GUI.I need to enter
values into or retrieve values from the table or grid.

thanks & regards
praveen
From: Steven Lord on

"Joseph Leung" <joseph(a)cjleung.net> wrote in message
news:ef17172.-1(a)webx.raydaftYaTP...
> Has anyone got any bad experience with MATLAB's GUI?
>
> I've been using it since it's first release in ver 5.1, and it keeps
> annoying me. Right now I am using the latest release, i.e. ver 7.1,
> (SP3), and the problems are still bugging me.
>
> For example, some of the features (say, displaying an inserted image
> on the GUI) would not appear if you open the GUI by "double-clicking"
> the fig-file in the "curent directory". You always need to start the
> GUI from the Command window...
>
> Can someone tell me what's wrong?

Nothing's wrong. The code to display the inserted image is inside the
initialization section of an M-file associated with that GUI FIG-file. By
double-clicking on the FIG-file, you're not telling MATLAB to display that
FIG-file _and_ execute the associated M-file -- you're just telling it to
display the FIG-file, so the code to initialize the image inserted in the
GUI isn't executed. Keep in mind that one GUI FIG-file could theoretically
be associated with multiple M-files, so having MATLAB automatically guess
which M-file it should run could result in MATLAB doing the wrong thing.

If you want to have a one-click interface to your GUI, I recommend creating
a shortcut that stores the current directory, goes to the directory
containing your GUI, invokes the M-file that contains the commands to
initialize your GUI, and then goes back to the previous directory.

This documentation page and the three or four that follow it describe how to
create and use shortcuts in MATLAB 7.1 (R14SP3).

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/deskto18.html

--
Steve Lord
slord(a)mathworks.com


From: Alex Rosenberg on
help uitable
-Alex

praveen wrote:
>
>
> Hi,
> Is there any way to create a table or grid on a GUI.I need to enter
> values into or retrieve values from the table or grid.
>
> thanks & regards
> praveen
 | 
Pages: 1
Prev: creating a time axis
Next: GUI