MUKTESH
MUKTESH

Reputation: 23

Not able to load file formats other than MATLAB files in Octave

Octave can easily load MATLAB files, for example load('names.m'). But while trying to load file formats other than MATLAB file format like load('names.txt') I am getting an error:

error: load: unable to determine file format of 'names.txt'

Error-not able to find the text file

Upvotes: 2

Views: 370

Answers (1)

Pooja P
Pooja P

Reputation: 121

Octave supports matlab file formats . But to load text files use the following code in terminal load('-ascii','names.txt'); This will load the text file without showing any error.

Upvotes: 5

Related Questions