Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!news.ecp.fr!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: check if vector is subset of another
Date: Thu, 05 May 2011 19:32:08 -0700
Organization: Aioe.org NNTP Server
Lines: 16
Message-ID: <ipvmj9$i2v$1@speranza.aioe.org>
References: <ipvgg4$dur$1@newscl01ah.mathworks.com> <ipvm0c$pgr$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:725422

On 5/5/2011 7:22 PM, Roger Stafford wrote:
> "Pr B"<pb2297@columbia.edu>  wrote in message<ipvgg4$dur$1@newscl01ah.mathworks.com>...
>> ....... i would like to see that a is a perfect subset of b but not a subset of c. ......
> - - - - - - - - - - -
> t = isempty(setdiff(a,b))&  ~isempty(setdiff(a,c));
>
> Roger Stafford

Roger,

The above does not really work. The order is not persevered in
these operations. OP wanted the order of the sequence 'a'
preserved.

--Nasser