フィルターのクリア

How to print the element of a cell into a text file?

1 回表示 (過去 30 日間)
Mnr
Mnr 2014 年 3 月 28 日
コメント済み: Mnr 2014 年 3 月 28 日
Hello all,
I have a 1X8 cell array with all its elements are 1X300 cells and each of those 300 cells are 4X1 doubles. I would like to print the cell array into a .txt file. I would appreciate if somebody can help me please. Thanks.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 3 月 28 日
If A is your cell array
M=cell2mat(cellfun(@(x) cell2mat(x),A','un',0))
dlmwrite('file.txt',M)
  1 件のコメント
Mnr
Mnr 2014 年 3 月 28 日
I really appreciate it! Thank you.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by