Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: What's new in release 2010a?
Date: Mon, 1 Mar 2010 11:11:55 -0500
Organization: The MathWorks, Inc.
Lines: 52
Message-ID: <hmgp05$p9l$1@fred.mathworks.com>
References: <hm5f0s$53r$1@fred.mathworks.com> <hm8392$oa7$1@fred.mathworks.com> <hm8ub6$m68$1@canopus.cc.umanitoba.ca> <hmb7j4$g09$1@fred.mathworks.com> <hmb8dc$8fi$1@fred.mathworks.com> <hmdmgn$c0v$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1267459909 25909 172.31.44.65 (1 Mar 2010 16:11:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Mar 2010 16:11:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:612754


"Dave Robinson" <dave.robinson@somewhere.biz> wrote in message 
news:hmdmgn$c0v$1@fred.mathworks.com...
> "Matt Fig" <spamanon@yahoo.com> wrote in message 
> <hmb8dc$8fi$1@fred.mathworks.com>...
>> Two of my new favorites, which I am sure will help slow some of the 
>> traffic on cssm:
>>
>>
>> >>help domyhomework
>> DOMYHOMEWORK Automatic assignment completion.
>>      FNAME = DOMYHOMEWORK(DESCRIPTION,DESIREDGRADE) writes to an M-File, 
>> FNAME, the correct solution to the homework assignment given by the text 
>> of DESCRIPTION.  The optional input, DESIREDGRADE, will take into account 
>> the desired level of MATLAB competence.  These are to be capital letters 
>> chose from 'A','B','C',D','F'.  If 'A' is chose, the code within the 
>> M-File will be fully documented, with help and an H1 line, with input and 
>> error checking, and vectorized where appropriate for optimum efficiency. 
>> If 'D' is chosen, there will be no comments, no help, and nearly every 
>> line will use a call to EVAL.  Also the code may be buggy.  See also 
>> DOMYSENIORPROJECT, DOMYGRADUATETHESIS
>
> Shouldn't the parameters of the DOMYHOMEWORK function be reversed? I 
> thought it should be
> FNAME = DOMYHOMEWORK(DESIREDGRADE,DESCRIPTION)
>
> where DESCRIPTION is an optional parameter to allow it not to be used so 
> that students need not break into valuable drinking time actually 
> describing what he/she wants the application to do - after all thats what 
> a significant number of these students expect us to work with. This should 
> be relatively easy for TMW to implement using the Steve Eddins Mind 
> Reading function - surely he must have it perfected by now?

Well, I shouldn't be posting this, but here's the example from the M-file 
help of DOMYHOMEWORK:

    functionName = doMyHomework('A', 
urlread('http://www.someuniversity.edu/ma123/assignment1.html'))

So it shouldn't cut down on students' valuable drinking time _too_ much.

Hmm ... now that I think of it, I wonder if we were able to fix that "bug" 
where the desiredgrade parameter was always set to 'F' inside the function 
itself, ignoring the user's input?  Oh well, if we didn't I'm sure we'll 
hear about it sooner or later :)

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ