MATLAB: How to save the cell array as a .csv file cell arraysexcelexportsave Hello, I currently have a 3000 X 1 cell array. Each element is a string, something like 'red_c_0111'. I want to save this cell array as a .csv file to be opened in excel. Appreciate the help! Best Answer You can either use xlswrite or lower level functionality: Export Cell To csv Related SolutionsMATLAB: How to load a cell array which contains both strings and numbers to matlab For Excel file use xlsread function[num,text,both]=xlsread('FileName') MATLAB: How to obtain a .csv file https://www.mathworks.com/help/matlab/ref/writematrix.htmlDocumentation for writematrix function, writematrix(A,filename) here A is the matrix and filename is the name of the .csv file you want to save it to.https://www.mathworks.com/help/matlab/ref/csvwrite.htmlThis is another possible function, but it is not recommended by matlab. Related QuestionExtracting Names from ExcelHow to write (1X279) cell array in csv? If i write like csvwrite(‘filename.csv’,M) I got each letter of cell array writing in each cell in the csv(spread sheet).Save .csv file in given folder
Best Answer