By default eig won't often return the eigenvalues and eigenvectors in sorted get. Use the kind operate To place the eigenvalues in ascending purchase and reorder the corresponding eigenvectors. Do you want MATLAB homework help? Or need a specialist from whom you can ask for homework help on MATLAB/Matlab homework https://edgarzpxtd.blue-blogs.com/36396497/new-step-by-step-map-for-matlab-assignment-help