how to delete empty cells and save in the text file
3 次查看(过去 30 天)
显示 更早的评论
sir,
The cell array C contains the following text,
C= {
'one' 'two' [] 'three' --- first row
'three' [] [] 'one' 'two' 'non' --- second row
[] [] [] 'four'}; --- third row
we want the output file is save in the text file as the following format ie., row by row delete the empty cells.
C={
'one' 'two' 'three' --- first row
'three' 'one' 'two' 'non' --- second row
'four'}; --- third row
thank you
0 个评论
回答(1 个)
Sreeram Mohan
2014-11-3
Look at a similar question being answered at the following thread
Hope this helps !!!
Sreeram
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!