Row vector into array.

조회 수: 14 (최근 30일)
Francesco
Francesco 2014년 2월 21일
편집: Francesco 2014년 3월 22일
I have this A variable made up by 1x72 double.

채택된 답변

Mischa Kim
Mischa Kim 2014년 2월 21일
편집: Mischa Kim 2014년 2월 21일
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
Francesco
Francesco 2014년 2월 21일
Thanks for you good reply Kim!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by