Define columns for exporting .txt file

1 view (last 30 days)
Glenn
Glenn on 14 Aug 2014
Commented: Glenn on 14 Aug 2014
Hello everyone,
I'm trying to export my table data to a .txt file. The export is succesfull however the lay-out is a problem. Because the Rownames have a long and variabel length the lay-out becomes really a mess. It is now like this: MicroData.txt But I want it like Microdata1.txt
Does anyone have an idea how to solve this?
  2 Comments
Joakim Magnusson
Joakim Magnusson on 14 Aug 2014
How do you create your table? what does it look like in code?
Glenn
Glenn on 14 Aug 2014
Data=[meanCells;numberDBCO;meanMol;kansOne;kansMol;concCell;concMol;successratio];
Units={'(-)';'Number of DBCO/cell';'(-)';'(-)';'(-)';'Cells/mL';'milliMolair';'(-)'};
name={'Mean number of cells (labda cells)';'Molecules needed per cell';'Mean number of molecules (labda molecules)';...
'Poisson distribution 1 cell (rate of success)';'Poisson distribution molecule (rate of success)';...
'Concentration of cell solution';'Concentration of molecules solution';'Rate of success 1 droplet'};
tabel=table(Data,Units,'Rownames',name) writetable(tabel,'MicroData.txt','Delimiter','\t','WriteRowNames',true)

Sign in to comment.

Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!