MATLAB: Importing only a fraction of a database using dataset data importdataset I have a large dataset in csv format (400MB). How can I import in MatLab only the first 500 rows? Best Answer nc=6; % Number of column in your csv filenr=500 data=csvread('file.csv',0,0,[0 0 nr-1 nc-1]) Related SolutionsMATLAB: Read one column from a csv file into MATLAB for calculating out = nanmean(ArrDelay);or in MATLAB R2015aout = mean(ArrDelay,'omitnan')); MATLAB: Create a function to extract data several csv files Thank you so much for your answers!I will upload a file so you can see.What I need is to take the data from different columns and rows to work with them after. Example. Take C21:J532, C556:H1067, C1089:H1600After I will need to work on that matrix. Related QuestionHow read excel comma sepearted value fileHow to import only the numbers from an csv.-files with a text header
Best Answer