[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/10.1.1.2418 |
*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?
Henry
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Syntax question,
Henry F. Mollet <=