How do I find the unique values of a matrix?

Asked

Viewed 223 times

1

How do I find the unique values of a matrix in MATLAB?

1 answer

1

To obtain the singular values of a matrix you can do the following:

v = svds(SuaMatriz);

This function calculates the six largest singular values of the matrix, as well as the associated vectors.

If you need more or less unique values you can use:

v = svds(SuaMatriz, NumeroDeValoresSingulares);

More information here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.