Error using matlab.io.​datastore.​DsFileSet

3 views (last 30 days)
Govy Nela
Govy Nela on 25 Oct 2022
Answered: Chetan on 15 Sep 2023
Hello community!
I am currently working on a predictive maintenance model. So I have to create a model and then simulate it in order to have the data needed to train the neural network. I had launched a few months ago the first version of the code, but after evaluating the results I was not satisfied. So I decided to add data in my simulation by generating more fault condition. For this, I created another code in which I ran the same lines but with some changes in the amount of data generated. Unfortunately when running the new code, I have the following error message: "Error using matlab.io.datastore.DsFile (line 160) Folder <my_folder> does not have any file or is empty".
Hoping for your response...

Answers (1)

Chetan
Chetan on 15 Sep 2023
Hello @Govy Nela,
I understand you're having an issue with the "datastore" in your code. The error message indicates that the specified folder, <my_folder>, is either empty or doesn't contain any files. To resolve this, follow these steps:
  1. Double-check the folder path to ensure it's correct and points to the location where the data files are stored.
  2. Verify that the expected data files exist in the folder, with correct names and extensions.
  3. Check the file and folder permissions to ensure you have the necessary read access.
  4. Add debugging statements or use MATLAB's file-related functions (e.g., dir or exist) to troubleshoot further.
You can read the following article for more details about the dir”, and “exist” function
I hope these suggestions help you resolve the issue you are facing

Categories

Find more on Large-Scale Modeling in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!