Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Finding 0's and setting to 1
Date: Sat, 3 Sep 2011 21:03:07 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <j3u4mb$jll$1@newscl01ah.mathworks.com>
References: <j3t1sm$dtk$1@newscl01ah.mathworks.com> <j3t66h$tjg$1@speranza.aioe.org> <j3t71p$rl6$1@newscl01ah.mathworks.com> <j3taqg$8cq$1@speranza.aioe.org> <j3tc96$d84$1@speranza.aioe.org> <j3tppo$jov$1@speranza.aioe.org>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1315083787 20149 172.30.248.46 (3 Sep 2011 21:03:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 3 Sep 2011 21:03:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com comp.soft-sys.matlab:742154

dpb <none@non.net> wrote in message <j3tppo$jov$1@speranza.aioe.org>...
> On 9/3/2011 9:05 AM, Nasser M. Abbasi wrote:
> ...
> 
> >
> > yes ofcourse, but I assumed there might be other values in there besides
> > '1' and '0' when OP said "wish to set all 0's in A to 1".
> >
> > But now you mention it, if all was needed is a vector of one's, then
> > your solution is the right one ofcourse.
> ...
> 
> Sure, but also just pointing out to OP the answer to the question as 
> posed in the example...OP seems to be doing very little (if any) 
> thinking here in the myriad of almost identical problem postings, I'm 
> gently trying to point out a just a _little_ thought (or gasp!! reading 
> "Getting Started") might be faster than waiting on cssm.  :(
> 
> --
I see your point dpb. However, my questions do contribute to both the body of knowledge available to others here, and my own learning.... Still, you have a point.