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

27 次查看(过去 30 天)
load data file.txt Error using load Unable to read file 'data': no such file or directory.

回答(2 个)

Shameer Parmar
Shameer Parmar 2016-6-24
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 2016-6-30
Maybe you meant:
load file.txt

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by