Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run initialize commands in Octave?

How do you set up Octave software to run initialization commands when it starts? For example, set the prompt (PS1) and cd to the project directory?

Thanks.

like image 423
B Seven Avatar asked Oct 17 '11 13:10

B Seven


1 Answers

I have Octave installed in C:\Octave, so I did what you ask in file at location C:\Octave\3.2.4_gcc-4.4.0\share\octave\site\m\startup. File is called System-wide startup file for Octave and code I put in there is:

PS1('>> ');
addpath('{$path-to-my-octave-files}');

But any code is OK, I guess.

like image 162
gonadarian Avatar answered Sep 18 '22 21:09

gonadarian