Unable to import txt file
1 view (last 30 days)
Show older comments
Ng Yong Jie
on 25 Jan 2022
Answered: Walter Roberson
on 25 Jan 2022
I tried earlier on with the exact same code and it works. However, it came out with this error when I tried again.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/873060/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/873060/image.png)
2 Comments
Accepted Answer
Walter Roberson
on 25 Jan 2022
train = fullfile(dataFolder, "train_FD001.txt");
[train_data1, train_labels1] = importdata(train)
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!