私は以前に約including matrices and strings in a .txt fileを照会しました。私は今それに細胞を追加する必要があります。私の以前の質問から:セル配列を.txtファイルに追加するにはどうすればよいですか?
str = 'This is the matrix: ';
mat1 = [23 46; 56 67];
fName = 'output.txt';
fid = fopen(fName, 'w');
if fid >= 0
fprintf(fid, '%s\n', str);
fclose(fid);
end
dlmwrite(fName, mat1, '-append', 'newline', 'pc', 'delimiter', '\t');
は今、私は、文字列を追加したい:「削除識別子はある」とそれ以下、このセル・アレイ:
'ABC' [10011] [2]
'DEF' [10023] [1]
いくつかの関連リンク:
http://www.mathworks.com/help/techdoc/ref/fileformats.html,http://www.mathworks.com/support/solutions/en/data/1-1CCMDO/index.html?solution=1-1CCMDO