It has exactly the same line if numberOfFiles = 1, but there is no for loop. headerlinesIn = 11 ĭata = importdata(filenames,delimiterIn,headerlinesIn) The limited precision reduces the accuracy, the conversion to numbers is expensive, the files are larger and the advantage of text files does not matter here: that a human can edit the file. It does open the files automatically, but only if my current folder is the Archive_08112012. By the way: Text files are a bad option for storing numerical data. Here's the codeline for the automatic file opening part, as it is right now : fichierref = 'H:\MATLAB\Archive_08112012' įiles = dir(fullfile(fichierref, '*.txt')) If my current folder is the one containing the user's data, how can I read my reference files? The thing is, I want the reference to be in a different folder (which will stay the same). In the next step, the user is asked to choose a file and the program will read the specified file. In the Folder dialog box, enter the folder path, or use the browse button to locate it. Hover the cursor on the 'From File' option and click on 'From Folder'. I'm making a program which need a reference folder with. In the Get
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |