[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax question

From: Henry F. Mollet
Subject: Syntax question
Date: Sat, 22 Feb 2003 10:11:05 -0800
User-agent: Microsoft-Entourage/

*Calculation of left and right eigenvector
*belonging to largest eigenvalue of matrix,
*then matrix/vector multiplication:

[W,d] = eig(a);
d = diag (d);
imax = find (d==max(d));
V = conj(inv(W));
w1 = W(:,imax);          /line 5
v1= real (V(imax,:)).';  /line 6
Senmat = v1*w1''

I understand everything except the ":" in lines 5 and 6. Somehow they
instruct to pick the column vector and row vector, respectivly, which go
with the largest eigenvalue. But how does it work?

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]