I dont know how to start this question about crreating a matrix according to an equation
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (1개)
Kritika Singh
2021년 10월 7일
You can use the eig function to calculate the eigen value and corresponding eigen vector of a matrix
A = [1 2 0; 2 5 -1; 4 10 -1]
[V,D] = eig(A)
returns diagonal matrix D of eigenvalues and matrix V whose columns are the corresponding right eigenvectors, so that A*V = V*D.
You can refer to following documentation to know more about the implementation of eig() function
To know more about Hamiltonian matrix and its matrix method calculation you can refer to the following link.
Please note,since this is an external link MathWorks is not responsible for the correctness of the content
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Quantum Mechanics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!