Error using matlab.io.datastore.DsFileSet
Mostrar comentarios más antiguos
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...
Respuestas (1)
Chetan
el 15 de Sept. de 2023
0 votos
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:
- Double-check the folder path to ensure it's correct and points to the location where the data files are stored.
- Verify that the expected data files exist in the folder, with correct names and extensions.
- Check the file and folder permissions to ensure you have the necessary read access.
- 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
- List folder contents - MATLAB dir - MathWorks India
- https://in.mathworks.com/help/matlab/ref/exist.html
I hope these suggestions help you resolve the issue you are facing
Categorías
Más información sobre Large-Scale Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!