Borrar filtros
Borrar filtros

Condition of a matrix giving an error of first input must be single or double

40 visualizaciones (últimos 30 días)
The matrix is as follows
1 -0.686522129973753 -0.551898879454274
1 -0.671205995069856 -0.519496574171434
1 -0.655431538907586 -0.486521559400613
The matrix is like this with 51 by 3 matrix and when I try to find condition number number I get the below error
[Error using svd
First input must be single or double.
Error in cond
s = svd(A);
Error in Script (line 24)
s = cond(s1,2)
Thank you

Respuestas (1)

the cyclist
the cyclist el 22 de Feb. de 2018
Are you sure your input matrix is numeric (and not, for example, a cell array)? What do you get from
class(M)
where M is the matrix you are entering into cond? It needs to be a single or double, otherwise you will need to do some kind of type conversion.

Categorías

Más información sobre Eigenvalues en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by