Path: news.mathworks.com!not-for-mail
From: "Shanmugam Kannappan" <shanmugambe@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Interclass comparisons Matlab?
Date: Fri, 10 Jul 2009 06:08:01 +0000 (UTC)
Organization: Tata Elxsi
Lines: 34
Message-ID: <h36ls1$hfb$1@fred.mathworks.com>
References: <bcdf1c0f-9627-4853-9d20-a9aa4a51cfc2@v15g2000prn.googlegroups.com>
Reply-To: "Shanmugam Kannappan" <shanmugambe@gmail.com>
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 1247206081 17899 172.30.248.38 (10 Jul 2009 06:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 10 Jul 2009 06:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1441885
Xref: news.mathworks.com comp.soft-sys.matlab:554326


Ashvin <nkmah2@gmail.com> wrote in message <bcdf1c0f-9627-4853-9d20-a9aa4a51cfc2@v15g2000prn.googlegroups.com>...
> Interclass comparisons Matlab?
> Hi,
> 
> Just wanted to know if there is a way to approach this:
> 
> I have several templates,
> 
> say: template 1,2,3,4,....,100
> 
> I would like to compare template 1 with the rest of the 99, then
> automatically go to template 2 with the other 99 (including template 1
> from the first section), template 3 with the rest of the 99, etc,
> 
> Any suggestions how to implement this in Matlab
> 
> Many Thanks,

Hi!
Use for loop...
Ex:

for i=1:100
 for j=1:100
   if i==j
     continue
  else
     Compare
  end
 end
end

Hope it helps....
Shan.......