How To Make a 10x10 Matrix Diagonalization Calculator
3 次查看(过去 30 天)
显示 更早的评论
My Code goes like this it's a working 2x2 Diagonalization Calculator but I need to be able to do a 10x10 matrix
prompt = 'Enter Matrix format [Row;NextRow] ';
GivenMatrix = input(prompt)
EigenValues = eig(GivenMatrix)
[V,EV] = eig(GivenMatrix)
Polynomial = poly(GivenMatrix)
A = V(:,1)
B = V(:,2)
AN = A/V(:,1)
BN = B/V(:,2)
EigenVector = AN+BN
Inverse = inv(EigenVector)
ANS = Inverse*GivenMatrix*EigenVector
I tried to increase the number of variables but when i tried to use them they always give me inaccurate answers. I also tried doing a 3x3 version but always messes up the eigenvector part of the solution
3 个评论
Jan
2017-12-4
It is a challenge to input 100 numbers in an edit field correctly. One typo and you have to restart. In consequence it is not trivial to reproduce a result.
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!