Unable to import txt file

2 views (last 30 days)
Ng Yong Jie
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.
  2 Comments
KSSV
KSSV on 25 Jan 2022
Is that the error? Or more lines shown? Is the said folder present in the path?
Ng Yong Jie
Ng Yong Jie on 25 Jan 2022
that is the only line of error

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 25 Jan 2022
train = fullfile(dataFolder, "train_FD001.txt");
[train_data1, train_labels1] = importdata(train)

More Answers (0)

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!