MATLAB Answers

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

33 views (last 30 days)
Venkatesh R
Venkatesh R on 24 Jun 2016
Answered: José-Luis on 30 Jun 2016
load data file.txt Error using load Unable to read file 'data': no such file or directory.

  1 Comment

KSSV
KSSV on 24 Jun 2016
Are you sure that the file is available in the folder in which you are working?

Sign in to comment.

Answers (2)

Shameer Parmar
Shameer Parmar on 24 Jun 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..

  0 Comments

Sign in to comment.


José-Luis
José-Luis on 30 Jun 2016
Maybe you meant:
load file.txt

  0 Comments

Sign in to comment.

Sign in to answer this question.