How do I find the unique values of an array in MATLAB?
How do I find the unique values of an array in MATLAB?
To get the singular values of an array you can do the following:
v = svds(SuaMatriz);
This function computes 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 .