Row vector into array.

13 visualizzazioni (ultimi 30 giorni)
Francesco
Francesco il 21 Feb 2014
Modificato: Francesco il 22 Mar 2014
I have this A variable made up by 1x72 double.

Risposta accettata

Mischa Kim
Mischa Kim il 21 Feb 2014
Modificato: Mischa Kim il 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.

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by