how to make an array without empty cell

1 次查看(过去 30 天)
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))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Identification 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by