how do i use for loop to fine determinant of Vandermonde matrix?
2 次查看(过去 30 天)
显示 更早的评论
how do i use for loop to fine determinant of Vandermonde matrix?
0 个评论
采纳的回答
Roger Stafford
2014-11-7
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
更多回答(1 个)
Zoltán Csáti
2014-11-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!