From: Kelly <kakearney@nospamgmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: GUIs:  GUIDE vs Code Only
Message-ID: <ef3f3e7.2@webcrossing.raydaftYaTP>
Date: Fri, 25 Aug 2006 11:01:07 -0400
References: <ef3f3e7.-1@webcrossing.raydaftYaTP>
Lines: 23
NNTP-Posting-Host: 128.160.131.31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:366568


Jeremy Smith wrote:

> What are the pros and cons of creating GUIs (graphical user
> interfaces) with GUIDE and programmatically (code only)?
>
> For either method, what are the pros and cons of using the
> switchyard
> approach to functions vs function handles? When I speak of
> switchyard I mean calling one function with a switch and a number
> of
> cases to execute the proper function.

I have always written my Matlab guis by hand. Since I've never
really used GUIDE, I can't give a good comparison between the two
methods, but from what I've seen, GUIDE code seems needlessly long
and messy. I also dislike that it monopolizes the UserData field,
which I often use for my own purposes. Designing a gui by hand can
be a little time-consuming, but I prefer that to having to keep track
of two files for every gui (.m and .fig). Plus, as the previous
poster mentioned, creating a gui from scratch allows you to make use
of nested functions, which can often simplify gui code.

-Kelly