Filter löschen
Filter löschen

Row vector into array.

2 Ansichten (letzte 30 Tage)
Francesco
Francesco am 21 Feb. 2014
Bearbeitet: Francesco am 22 Mär. 2014
I have this A variable made up by 1x72 double.

Akzeptierte Antwort

Mischa Kim
Mischa Kim am 21 Feb. 2014
Bearbeitet: Mischa Kim am 21 Feb. 2014
Francesco, you could use
A(A == 0) = [];
B = reshape(A,8,8)
for your specially formatted matrix A, where the zeros are located at those very same positions.
  1 Kommentar
Francesco
Francesco am 21 Feb. 2014
Thanks for you good reply Kim!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by