Reluctant_Linux_User
Reluctant_Linux_User

Reputation: 343

Why can't I get any .m file to work in octave?

I am desperately trying to run octave in a VirtualBox of Ubuntu 12.04. I have made a file called ANGRY.m which has lines as follows:

%How badly does octave suck?

OCTAVESUCKS=5

That is it. When I try to run it (i.e. enter ANGRY into the command line I get this error message:

error: `ANRGY' undefined near line 1 column 1

I've had things running better than this in octave and have absolutely no clue why it is doing this or how to fix it or how to go about trying to search for what is wrong. I am sorry I cannot be more helpful. But I really can't. Please aim any answer at a total moron. I'm really not a programmer.

Upvotes: -1

Views: 1157

Answers (3)

Šteta
Šteta

Reputation: 1

I solved this problem with File-SetPath, and moving my path to the top of the list.

Upvotes: 0

Andy
Andy

Reputation: 8091

Do you see your file ANGRY.m when you type

ls

in Octave? Check the working dir with "pwd"!

Upvotes: 0

DDPWNAGE
DDPWNAGE

Reputation: 1443

You misspelled ANGRY when you put it into the terminal...

Upvotes: 0

Related Questions