Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g1g2000pra.googlegroups.com!not-for-mail
From: TideMan <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: pseudo fprintf user defined function
Date: Sun, 8 Nov 2009 23:31:30 -0800 (PST)
Organization: http://groups.google.com
Lines: 32
Message-ID: <172f7d91-1f1b-4fcb-bea3-a4cbf034d92f@g1g2000pra.googlegroups.com>
References: <hd82sm$k7t$1@fred.mathworks.com>
NNTP-Posting-Host: 202.78.152.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257751890 27535 127.0.0.1 (9 Nov 2009 07:31:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 9 Nov 2009 07:31:30 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g1g2000pra.googlegroups.com; posting-host=202.78.152.105; 
	posting-account=qPexFwkAAABOl8VUndE6Jm-9Z5z_fSpR
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bc3
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) 
	Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:583482


On Nov 9, 4:39 pm, "Wai Kwan " <waikwan_...@hotmail.com> wrote:
> Hello all,
>
> I feel bad for asking a silly question here but I am still a freshie on MATLAB.
> I am having an assignment from university and apparently I was asked to prepare a new function which is similar to fprintf.
>
> The function should be able to act like fprintf,just for the string printing part only.
> The emulated function should be able to behave differently if you supply return variable
> (ret = fprintf('hi') % prints `hi' and assign 2 to variable ret) and if you do not supply such return variable (fprintf('hi') % just prints `hi').
>
> I have been stuck for days.Seriously need all of your help A.S.A.P.
> Thanks in advance.
>
> Warmly,
> WaiKwan

So, what have you tried so far?
Or do you expect us to do your homework for you?
And if we do this, will you submit it and claim it as your own work?
Honestly, I really want to help you, but I'm afraid that if I do so,
that will make you a liar and a cheat.
Perhaps the best thing would be if you posted your professor's email,
then we can submit our solution to your homework directly to him
pointing out the dilemma that we are facing.