Unable to import txt file

2 Ansichten (letzte 30 Tage)
Ng Yong Jie
Ng Yong Jie am 25 Jan. 2022
Beantwortet: Walter Roberson am 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 Kommentare
KSSV
KSSV am 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 am 25 Jan. 2022
that is the only line of error

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by