delete empty cells from cell array

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2019년 5월 6일
답변: madhan ravi 2019년 5월 6일
Untitled.png
how to delete the empty cells and get back 4x4 matrix
i tried
out = ca(~cellfun('isempty', ca));
but i'm getting output as vector. I need it as matrix format

채택된 답변

madhan ravi
madhan ravi 2019년 5월 6일
reshape(out,4,[])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by