How can I remove zero values from the followning label matrix?.

2 次查看(过去 30 天)
How can I remove zero values form the following
?.

采纳的回答

Hikaru
Hikaru 2014-9-22
If your matrix is A, then
A(A==0) = []
will remove the zeros. But it will change the matrix into a vector.
If you want to keep the matrix in the same shape, maybe
A(A==0) = NaN

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by