unable to load .txt file. it shows the following error

11 visualizzazioni (ultimi 30 giorni)
load data file.txt Error using load Unable to read file 'data': no such file or directory.
  1 Commento
KSSV
KSSV il 24 Giu 2016
Are you sure that the file is available in the folder in which you are working?

Accedi per commentare.

Risposte (2)

Shameer Parmar
Shameer Parmar il 24 Giu 2016
You can do this..
Data = textread('abc.txt', '%s', 'delimiter', '')
Make sure that the abc.txt file is present in current directory.
It will create variable 'Data' which store all data from your text file..

José-Luis
José-Luis il 30 Giu 2016
Maybe you meant:
load file.txt

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by