How can I remove empty arrays of cell

2 次查看(过去 30 天)
please find attached file, how can I remove empty row of cell arrays. Thanks in advance,
  2 个评论
Stephen23
Stephen23 2020-4-16
编辑:Stephen23 2020-4-16
"how can I remove empty row of cell arrays"
None of the cells are empty:
>> any(cellfun(@isempty,time))
ans = 0
All of the cells contain a scalar structure (which is inefficient storage: one non-scalar structure would be much better).
Farshid Daryabor
Farshid Daryabor 2020-4-16
I don't understand, what do you mean?
I want just remove '[]' arrays from 'time'

请先登录,再进行评论。

采纳的回答

Ameer Hamza
Ameer Hamza 2020-4-16
Run this
idx = cellfun(@(x) isempty(x), time);
time(idx) = [];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by