how to make an array without empty cell

3 ビュー (過去 30 日間)
uzzi
uzzi 2022 年 11 月 7 日
コメント済み: uzzi 2022 年 11 月 7 日
Hello,
I have an array of this and there are some empty cells. I am trying to eliminate those with this command but it is working. I want my cell array with zero empty cells. Can someone help me?
t(all(emptyCells,:) = []
t(emptyCells) = [];

採用された回答

Walter Roberson
Walter Roberson 2022 年 11 月 7 日
t(~cellfun(@isempty, t))
  1 件のコメント
uzzi
uzzi 2022 年 11 月 7 日
Thank you very much. Your answer worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by