Row vector into array.

13 views (last 30 days)
Francesco
Francesco on 21 Feb 2014
Edited: Francesco on 22 Mar 2014
I have this A variable made up by 1x72 double.

Accepted Answer

Mischa Kim
Mischa Kim on 21 Feb 2014
Edited: Mischa Kim on 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 Comment
Francesco
Francesco on 21 Feb 2014
Thanks for you good reply Kim!

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!