1.

The nature of the eigen matrix displayed in MATLAB is ___________(a) Unsorted(b) Sorted(c) Sorted in Ascending order(d) Sorted in Descending orderI got this question in quiz.My question is based upon Linear Systems in portion Beyond the Basics of MATLAB

Answer»

Right option is (a) Unsorted

To elaborate: The eig(a,’matrix’) COMMAND will RETURN the EIGEN values of the matrix ‘a’ in a matrix form. But, it will give it in an unsorted manner- the elements will be PLACED on the PRINCIPAL diagonal. To sort them, we need to use the sort command- this will sort the columns in ascending order.



Discussion

No Comment Found

Related InterviewSolutions