Error using matlab.io.​datastore.​DsFileSet

1 次查看(过去 30 天)
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...

回答(1 个)

Chetan
Chetan 2023-9-15
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

类别

Help CenterFile Exchange 中查找有关 Simscape 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by