From: Anush on
I have two matrices A and B. Both are of the same size m*m...

I want to find the largest sub-matrix common to both the matrices... point is the sub-matrix need not be in the corresponding elements of the two matrices.

Suppose n*n is the largest sub-matrix they might occupy different locations in the two matrices...

Is there any quick way to do this using some functions in Matlab ?? Can you please tell me how to approach this problem ???
From: us on
"Anush " <anush.sankaran(a)gmail.com> wrote in message <hqv4td$a5$1(a)fred.mathworks.com>...
> I have two matrices A and B. Both are of the same size m*m...
>
> I want to find the largest sub-matrix common to both the matrices... point is the sub-matrix need not be in the corresponding elements of the two matrices.
>
> Suppose n*n is the largest sub-matrix they might occupy different locations in the two matrices...
>
> Is there any quick way to do this using some functions in Matlab ?? Can you please tell me how to approach this problem ???

a hint:
- if(f) you own the signal proc tbx...

help xcorr2;

us
From: Anush on
Oh wow ... that was more than enough ..

Thanks a ton ...

"us " <us(a)neurol.unizh.ch> wrote in message <hqv5ag$pjq$1(a)fred.mathworks.com>...
> "Anush " <anush.sankaran(a)gmail.com> wrote in message <hqv4td$a5$1(a)fred.mathworks.com>...
> > I have two matrices A and B. Both are of the same size m*m...
> >
> > I want to find the largest sub-matrix common to both the matrices... point is the sub-matrix need not be in the corresponding elements of the two matrices.
> >
> > Suppose n*n is the largest sub-matrix they might occupy different locations in the two matrices...
> >
> > Is there any quick way to do this using some functions in Matlab ?? Can you please tell me how to approach this problem ???
>
> a hint:
> - if(f) you own the signal proc tbx...
>
> help xcorr2;
>
> us