Dear stackoverflowers,
I'd like to create a .txt file using matlab. The content should be separated with tabs. It should have 3 columns, and the 3rd column should be filled with strings from a cell array. Let's say
A=[2; 3; 3;];
B=2*A;
C=cell(3,1);
C{1,1}='string1'; C{2,1}='string2'; C{3,1}='string3';
In the end, it should look like this:
2 4 string1
3 6 string2
3 6 string3
I already found out, how to put the 2 matrices in a text file: dlmwrite('filename.txt', [A B], 'delimiter', '\t')
But how to append the content of the cell? It would be best, to have only the strings in the file, not the single quotes. I neither found a solution to this elsewhere, nor did I ask this somewhere else. I apprechiate all kinds of suggestions.