I have a matrix V
.
I want to test if the matrix equal to one or not.
Sometimes the sum(V(:))==1.0000
but when I test if sum(V(:))== 1
the results always FALSE
.
How to solve that problem.
I have a matrix V
.
I want to test if the matrix equal to one or not.
Sometimes the sum(V(:))==1.0000
but when I test if sum(V(:))== 1
the results always FALSE
.
How to solve that problem.