Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Insert elements into the vector
Date: Wed, 24 Jun 2009 22:57:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <h1uavt$jdi$1@fred.mathworks.com>
References: <h1u9qc$5o4$1@fred.mathworks.com> <640c3b3b-cdf8-40be-bf4f-c6d4491af598@i4g2000prm.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245884221 19890 172.30.248.38 (24 Jun 2009 22:57:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 24 Jun 2009 22:57:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1875128
Xref: news.mathworks.com comp.soft-sys.matlab:550465


OK, so the question is
I want to do ttest2 with two sets of vectors, but I don't want to test every single pair (testing is expansive). I only need to test certain pair.  I know how to select the pair know.  However, I want the whole list of the pairs. not just the ones I test.  ttest2 will only give the pairs I tested, so I have to insert 0 for the pairs I didn't test.  How do I insert the zeros? 
Thanks 
Diego  

Nathan <ngreco32@gmail.com> wrote in message <640c3b3b-cdf8-40be-bf4f-c6d4491af598@i4g2000prm.googlegroups.com>...
> On Jun 24, 3:37?pm, "Diego Lass" <dlISC...@gmail.com> wrote:
> > Hi
> > I would like to insert values into a vector with the location of insertion known, how do I insert them.
> > For example,
> > A = [2 ; 2; 3; 4]
> > A = 2
> > ? ? ? 2
> > ? ? ? 3
> > ? ? ? 4 ?
> >
> > I want to insert 0 every 1 element(variable, can change) i.e
> > B = 2
> > ? ? ? 0
> > ? ? ? 2
> > ? ? ? 0
> > ? ? ? 3
> > ? ? ? 0
> > ? ? ? 4
> > ? ? ? 0
> >
> > Thanks
> > Diego
> 
> This is the third discussion regarding the same vague topic you have
> made in a row. Why not come out and ask the whole question so people
> can answer it to your specifications?
> Thanks
> -Nathan