Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Create a new vector from a current vector
Date: Mon, 5 Nov 2007 17:20:37 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 22
Message-ID: <fgnjd5$ss1$1@fred.mathworks.com>
References: <fgnbec$21u$1@fred.mathworks.com> <fgnes3$mop$1@fred.mathworks.com> <fgng65$d9h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1194283237 29569 172.30.248.37 (5 Nov 2007 17:20:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 5 Nov 2007 17:20:37 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:436139



nor ki:
<SNIP found a mistake in <us>'s reply - did he/she?

> sorry i don“t get the same results...

what results? i did not show them...

% here they are
     [abeg;aend]
%     1     6     7    10    18
%     5     6     9    17    20

     r
%    13     4    13    27     9

% now, compare a few results, eg
     sum(a(1:5)) % = 13
     sum(a(10:17)) % = 27
% which seem ok...

note: i said <more versatile>
us