MATLAB: How can i read a csv file csvxlsread How can i read a csv file. i used fopen but it gives a value of -1 A=fopen('slip.csv') Best Answer csv files are text files, usually written in ASCII or ISO-8896-1 (which is compatible with ASCII). Related SolutionsMATLAB: Import txt file containing some comment character = “#” Mention: ....'CommentStyle','#')fileID = fopen(filename); %an example C = textscan(fileID,formatspec','Delimiter',',','CommentStyle','#');fclose(fileID); MATLAB: Creating an input list from a large data set why don't you simply writeclear dir;list = dir('c:\Lisajustin\vib\*.csv'); Related QuestionSearch down 2 subdirectories from a starting directory and read a certain cell from the csv fileI have multiple csv files that need to be imported to later extract certain columns to write new files. However the code below doesnt return the column I need (column 1) I need the code to create a matrix “Time” for every fileCreate a function to extract data several csv files
Best Answer