Discussion Overview
The discussion revolves around solving a linear system in Matlab, specifically focusing on the computation and sorting of eigenvalues and eigenvectors. Participants explore issues related to the visualization of eigenvalues and seek methods to align eigenvalues with their corresponding eigenvectors.
Discussion Character
- Technical explanation
- Mathematical reasoning
- Homework-related
Main Points Raised
- One participant describes a process for generating a matrix ##A## and finding its eigenvalues using Matlab, but expresses concern over the quality of the resulting plot.
- Another participant suggests sorting the eigenvalues to improve the plot.
- A participant questions whether eigenvalues are automatically sorted by Matlab and seeks clarification on automating this process.
- It is noted that the eigenvalues are on the diagonal of the matrix returned by the eig function, and using the diag function is recommended over using sum to extract them.
- A participant inquires about maintaining the pairing of eigenvalues with their corresponding eigenvectors after sorting.
- Another participant explains how to use the sort function to obtain both sorted eigenvalues and the indices for sorting the eigenvectors accordingly.
Areas of Agreement / Disagreement
Participants generally agree on the need to sort eigenvalues and the use of the diag function to extract them, but there is no consensus on the automatic sorting behavior of Matlab or the best method to align eigenvectors with sorted eigenvalues.
Contextual Notes
Participants discuss the limitations of the current approach, including potential confusion regarding the sorting of eigenvalues and the extraction of eigenvalues from the eig function output.
Who May Find This Useful
This discussion may be useful for individuals working with linear systems in Matlab, particularly those interested in eigenvalue problems and data visualization techniques.