how do i use for loop to fine determinant of Vandermonde matrix?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Xiaoyan
le 7 Nov 2014
Réponse apportée : Zoltán Csáti
le 13 Nov 2014
how do i use for loop to fine determinant of Vandermonde matrix?
0 commentaires
Réponse acceptée
Roger Stafford
le 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
Plus de réponses (1)
Zoltán Csáti
le 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 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!