Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr23.news.prodigy.net.POSTED!ef461957!not-for-mail
From: Dave Bell <dbell@TheSPAMFREEBells.net>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to be a good Matlab programmer
References: <d6f9728b-07d7-4ebc-8264-e2485cde6259@c65g2000hsa.googlegroups.com> 	<fudv0j$adm$2@aioe.org> <b375ae00-dba3-42a5-a138-31be2142591c@s50g2000hsb.googlegroups.com>
In-Reply-To: <b375ae00-dba3-42a5-a138-31be2142591c@s50g2000hsb.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 28
Message-ID: <u8xOj.1371$26.1046@newssvr23.news.prodigy.net>
NNTP-Posting-Host: 69.110.30.204
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr23.news.prodigy.net 1208655514 ST000 69.110.30.204 (Sat, 19 Apr 2008 21:38:34 EDT)
NNTP-Posting-Date: Sat, 19 Apr 2008 21:38:34 EDT
Organization: at&t http://my.att.net/
X-UserInfo1: SCSYASVEWJWKBP\SN[O@_WH@YR_B@EXLLBWLOOAFMAVNDQUBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL
Date: Sat, 19 Apr 2008 18:38:35 -0700
Xref: news.mathworks.com comp.soft-sys.matlab:464090



Rex wrote:
> On Apr 19, 7:23 pm, dpb <n...@non.net> wrote:

>> I assume you've read the section in the online documentation on
>> "Optimizing Matlab Code" in the m-file programming section?
>>
>> --
> 
> Yes, I have; that is the type of resource I am looking for. However, I
> want to be clear that I'm not just looking for tips on optimizing the
> performance of my code;  I also want to learn to write more elegant
> and concise code.
> Rex

That was a good example of what I encountered as a new Matlab user, as 
well. It's an entirely different programming paradigm, and it takes a 
while to get used to. (I still program Matlab like C!)

Another issue I ran into was simply searching for help. When I was 
trying to speed up a project I was working on, someone suggested using 
benchmark before and after changing some code. Not wanting to seem 
dumber than I was, I didn't ask how to benchmark my code, I just figure 
I'd look it up. Try it - there is no such command. One of the two hits I 
got from 'Help benchmark' was an article on training a neural net, the 
other was about a Simulink model of a Physics 1 experiment with a cart 
and mass. I won't admit to how long it took to find 'bench'!

Dave