Transpose column from .csv file
25 views (last 30 days)
How can I transpose a column that is read from a .csv file? Currently I am reading the column, transposing it, and reprinting it. However, all of the numbers are crunched together into one cell. When I transpose, I need to have commas between each of my columns (or what used to be the end of a row, before the transpose took place).
-- This is what I am trying, but it does not work
C1 = dlmread(strcat(GlotaranFileName,'.csv'), ',', [0 1 lineCount 1]);
fprintf(fid, '%d', C1'); % write the relevent data to the file