Adding custom function to Octave

After writing a new function such as this one, we need to make sure that Octave can find the file.

To do this create a new directory where you usually install your packages. If you are not sure, you can type
octave:1> path
inside octave.

Copy your function to this new directory. Add this new path in your .octaverc (usually located at your home directory).
path(path(),"/home/blabla/octave/myfun")
where /home/blabal/octave is the place where you usually install your octave packages.

Advertisements

One Response

  1. ….what?? could you explain more clearly??

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: