how to delete empty cells and save in the text file

4 ビュー (過去 30 日間)
Jothi
Jothi 2014 年 11 月 3 日
コメント済み: Jothi 2014 年 11 月 3 日
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

回答 (1 件)

Sreeram Mohan
Sreeram Mohan 2014 年 11 月 3 日
Look at a similar question being answered at the following thread
Hope this helps !!!
Sreeram
  1 件のコメント
Jothi
Jothi 2014 年 11 月 3 日
sir,
Already seen this method but, this is not a row by row deletion.
This method deletes the entire empty cells in the cell arrays.
But I want row by row deletion.
Thank you for your kind information.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by