How can I remove empty arrays of cell

2 views (last 30 days)
please find attached file, how can I remove empty row of cell arrays. Thanks in advance,
Farshid Daryabor
Farshid Daryabor on 16 Apr 2020
I don't understand, what do you mean?
I want just remove '[]' arrays from 'time'

Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 16 Apr 2020
Run this
idx = cellfun(@(x) isempty(x), time);
time(idx) = [];
Stephen23 on 16 Apr 2020
No need for an anonymous function:
idx = cellfun(@isempty, time);

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!