Home / unable to open file matlab Unable to open file matlab 04/04/2021 I am making use of a loop to open up a large number of .csv files. I have actually applied it to a folder with .csv files and it worked. However,I use it now to another folder through .csv records and also it doesn"t work-related.You watching: Unable to open file matlab https://www.jiyuushikan.org/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_210900 If the only difference is the folder and the certain csv documents, then probably one is corrupted . Can you connect the one that it bombs on? https://www.jiyuushikan.org/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_210901 I ran the loop aacquire for various ranges inside this folder.In the specific folder I have 74 .csv papers.The initially 14 and the last 9 cannot be opened by the importinformation inside the loop.The remainder job-related fine. Image Analyst,I thought the exact same around "corrupted files",but the trouble is only with the loop.I expect that if I attempt importdata for the particular files one by one it works. https://www.jiyuushikan.org/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_210938 That is not a normal csv file - it contends leastern 2 sets of data with a bunch of header lines separating the two. I do not think importinformation is put up to handle concatenated records like that. https://www.mathfunctions.com/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211027 Yes,I understand.However,I discovered a way to manage this type of documents by using importdata() at the start and a combination of various other functions later on. My problem is still that importinformation opens every one of the records one by one,yet cannot open up some of them as soon as I start a loop. https://www.mathfunctions.com/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211033 I don"t understand also. First you say that you have a means to handle it, then you say you do not , or at leastern it does not occupational when it"s in a loop (which does not make sense). https://www.mathfunctions.com/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211054 Sorry,I will define it much better.Tbelow is a folder of 70 files.The loop that I posted over cannot run for the first 15 files and the last 10 files.If i limit the loop to the remainder (from file 15 to file 60) it works fine. In enhancement,it is not feasible the reason that some documents not open up bereason they are corrupted,bereason I can open these documents with the importdata and the rest features that I usage,as soon as I execute this one-by-one (not via the loop). For the moment being,bereason the papers are not many kind of,I supplied the loop for the papers 15 to 60 and also tackled the remainder with the very same attributes yet one-by-one. However before,because I need to do the very same for foolder with a lot even more .csv papers,I wanted to discover a solution and run the loop for all the files.See more: Sim Card Slot Repair Cost - Replacement Nano Sim Card Tray Holder Slot https://www.mathfunctions.com/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211055 As you agree, it does not make feeling. All I have the right to perform is to try it and also try to debug it, so if you desire, attach your 70 documents and also m-file in a zip file, and also I"ll view if I have the right to attempt it and recreate what you"re seeing. https://www.jiyuushikan.org/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211875 https://www.mathfunctions.com/matlabcentral/answers/127540-unable-to-open-csv-file-error-using-importdata-line-136-unable-to-open-file#comment_211942 Well what should have actually occurred is that in the first case where it ran, you must have actually had actually the csv documents in the present folder so you didn"t require the folder name. In the second instance the files were not in the current folder, where the m-file was, or also on the search route. So it didn"t know wright here to find them. When you addednow you told it the complete filename and it could find them. The correct way, more durable way , to carry out this is: Community Treacertain Hunt Find the prizes in MATLAB Central and also find how the community deserve to help you! Start Hunting! Community Treacertain Hunt Find the prizes in MATLAB Central and uncover exactly how the community deserve to assist you! Start Hunting! An Error Occurred Unable to finish the action bereason of transforms made to the page. Repack the page to see its updated state. Select a Web Site Choose a web website to obtain analyzed content wright here easily accessible and also see regional events and provides. Based on your area, we recommfinish that you select: . Select internet site How to Get Best Site PerformanceSelect the China site (in Chinese or English) for finest site performance. Other jiyuushikan.org nation sites are not optimized for visits from your place.See more: Windows 10 Text Size Keeps Changing, Text Font Size Keeps Changingjiyuushikan.orgAccelerating the pace of design and sciencejiyuushikan.org is the leading developer of mathematical computer software application for designers and scientists.