Borrar filtros
Borrar filtros

extract non-zeros block from matrice

1 visualización (últimos 30 días)
khatere darvish
khatere darvish el 26 de Feb. de 2018
Comentada: khatere darvish el 27 de Feb. de 2018
I have a matrix that contains several non-zeros blocks.The rest of the elements are zero. I want to put each of these blocks in a separate matrix. how can i do it?

Respuestas (1)

jonas
jonas el 26 de Feb. de 2018
Not sure exactly what you want to do. The following creates a vector B containing all non-zeros of A
B=A(A~=0)
Do you want to extract several small matrices from a larger global matrix?
  5 comentarios
Jan
Jan el 26 de Feb. de 2018
Do you have the image processing toolbox?
khatere darvish
khatere darvish el 27 de Feb. de 2018
yes i have it. thank you so much for your help

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by