How to make a new path permanent in Octave

view story

http://ubuntuforums.org – I am new to Octave and started learning it yesterday. I tried solving psuedoinverses and this worked well in a single file via the terminal commands (y = A x => x = (A' A)^-1 A' y; where A can be rectangular). However I want to make a number of general task files as *.m. I put the psuedoinverse algorithm in a text file (PI.m) and saved to Desktop/GP and found I needed to set a path so Octave could find it. After trolling through the Octave manual (no mean feet!) I found addpath("~Desktop\PI"); worked and I could run the algorithm as x = PI(A, y) and was quite surprised that I (Hardware)