Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You probably need to load the package (see the <a href="http://wiki.octave.org/FAQ#I_have_installed_a_package_but_still_get_a_.22foo_undefined.22_error" rel="nofollow">Octave FAQ</a>). Run <code>pkg list</code> to confirm the package is installed and whether it is loaded. It will display a table of all installed packages with an asterisk in front of the packages that are loaded. You won't be able to use packages that are not loaded. See the following Octave session.</p> <pre><code>octave&gt; partcnt (7) # does not work because function is not in search path error: `partcnt' undefined near line 9 column 1 octave&gt; pkg list # show list of packages Package Name | Version | Installation directory ---------------+---------+----------------------- control | 2.4.1 | /home/carandraug/octave/control-2.4.1 general | 1.3.2 | /home/carandraug/octave/general-1.3.2 generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5 image | 2.1.0 | /home/carandraug/octave/image-2.1.0 miscellaneous | 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0 optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2 signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0 specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0 struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10 octave&gt; pkg load miscellaneous # load package octave&gt; partcnt (7) # it works now ans = 15 octave&gt; pkg list # confirm that package is loaded (* in front of the name) Package Name | Version | Installation directory ---------------+---------+----------------------- control | 2.4.1 | /home/carandraug/octave/control-2.4.1 general *| 1.3.2 | /home/carandraug/octave/general-1.3.2 generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5 image | 2.1.0 | /home/carandraug/octave/image-2.1.0 miscellaneous *| 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0 optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2 signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0 specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0 struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10 octave&gt; pkg unload all # unload the package octave&gt; partcnt (7) # no longer works because it was removed from path error: `partcnt' undefined near line 15 column 1 octave&gt; pkg list Package Name | Version | Installation directory ---------------+---------+----------------------- control | 2.4.1 | /home/carandraug/octave/control-2.4.1 general | 1.3.2 | /home/carandraug/octave/general-1.3.2 generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5 image | 2.1.0 | /home/carandraug/octave/image-2.1.0 miscellaneous | 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0 optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2 signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0 specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0 struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10 </code></pre> <p>The reason why the general package is loaded automatically when you load <code>miscellaneous</code>, is because <code>general</code> is a dependency of <code>miscellaneous</code>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload