Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

helllooo please help me -Euclidiean distance

5 views
Skip to first unread message

RIYA PAUL

unread,
Dec 4, 2012, 6:45:58 AM12/4/12
to
I have two 3 dimensional matics.

how to calculate euclidiean distance between those wo matrics only for column element

I used pdist func. However it is not working .Index matrics dimension error is comming as a result.

Nasser M. Abbasi

unread,
Dec 4, 2012, 6:55:29 AM12/4/12
to
So, you have something like A=NxMx2 ?
and you want to find 'euclidiean distance` between A(:,:,1) and A(:,:,2)

Lets first make sure we are on the same page, since I never heared
of a 'euclidiean distance` between 2 matrices so I am not sure
(but again, I am not a math major)

--Nasser



Nasser M. Abbasi

unread,
Dec 4, 2012, 7:01:52 AM12/4/12
to
On 12/4/2012 5:55 AM, Nasser M. Abbasi wrote:


If you describe more clearly what is your data structure,
and what is it you want to find the distance between it will help.

RIYA PAUL

unread,
Dec 6, 2012, 9:09:46 AM12/6/12
to n...@12000.org
yeaah I m looking for euclidean distance of example:-a(19*19*75) and b(19*19*76) ....only column vector have to taken into account. no change with row vector

RIYA PAUL

unread,
Dec 6, 2012, 9:15:52 AM12/6/12
to n...@12000.org
please nasser help me out. I am waiting for your reply

RIYA PAUL

unread,
Dec 6, 2012, 9:51:33 AM12/6/12
to n...@12000.org
the part of the code is
for k= 1:NumWin
X=mixmatr_ICA_st(:,:,k);
Y=mixmatr_ICA_st(:,:,k+1);

%Dimension= zeros(NumChan,NumChan,NumWin);
% D(NumChan,NumChan) = dist((mixmatr_ICA_st(:,:,k+1) -mixmatr_ICA_st(:,:,k))); % euclidean distance
D = pdist2(X,Y,'euclidean');

end

simran

unread,
Dec 6, 2012, 10:19:24 AM12/6/12
to n...@12000.org
is there anybody who can help me ???
0 new messages