how do i use for loop to fine determinant of Vandermonde matrix?

조회 수: 5 (최근 30일)
Xiaoyan
Xiaoyan 2014년 11월 7일
답변: Zoltán Csáti 2014년 11월 13일
how do i use for loop to fine determinant of Vandermonde matrix?

채택된 답변

Roger Stafford
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
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.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by