I have a 1X8 cell array of data:
EX:
G=
42.233
38.461
44.904
44.656
44.286
[]
44.106
43.968
Those are the elements in that cell.
How do I remove the "[]" from the cell array so that I end up with the following:
42.233
38.461
44.904
44.656
44.286
44.106
43.968
(The real data is actually 100s of lines long and I would need to know how to remove it no matter where the []'s were located.)
Appreciate it, Mike

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 11일

0 개 추천

G(cellfun(@isempty,G))=[]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

질문:

2014년 7월 11일

댓글:

2014년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by