how do i use for loop to fine determinant of Vandermonde matrix?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how do i use for loop to fine determinant of Vandermonde matrix?
0 Commenti
Risposta accettata
Roger Stafford
il 7 Nov 2014
Let V be an n-by-n Vandermonde matrix.
d = 1;
for k = 1:n-1
d = d*prod(V(k+1:n,2)-V(k,2));
end % <-- At exit d equals det(V)
This might give you greater accuracy for this special kind of matrix than using 'det'. See
http://en.wikipedia.org/wiki/Vandermonde_matrix
Più risposte (1)
Zoltán Csáti
il 13 Nov 2014
If you want to calculate the determinant of an arbitrary matrix in a loop, you can also do it by using the Levi-Civita symbol.
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!