If you click the Import button, you can also see the generated code or script. you will be able to choose what data types are imported. For background, I have tested 30 products, 3 times each giving a total of 90 unique files (grouped into three's). csv file you can use the Import Tool which will help you through the import process. The matrix 'Q' was just a test - it brings all the data in but in three really long columns which is not what I want. ![]() I am thinking the problem is because the list has '', but I do not know how to fix it. ![]() But Matlab does not recognize the comma as a delimiter. If possible I would be happy to have the data in consecutive columns in one single matrix (although, as I previously mentioned, the files are different lengths). Link Commented: Stephen23 on Accepted Answer: Star Strider ShipData.csv I need to import. The following is what I'm using to import the data and convert from cells to doubles - as you can see it's fairly labour intensive.Does anyone have a method to reduce the amount of copy-pasting I'm doing? for k = 1:nĭ = textscan(fid,'%f %f %f %f %*'. csv's into one folder and I've used a file grabber (obtained from Stackoverflow) to bring the csv data into the workspace, like so: = uigetfile(. In this instance I'm only interested in obtaining columns 1,3 & 4. For background, I have tested 30 products, 3 times each giving a total of 90 unique files (grouped into three's).Įach of my raw data files has a different number of rows and includes a header row with 9 columns (I'm not interested in the headers). I was hoping for some help with data import.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |