MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Once you know which toolbox the function belongs to, use the ver function to see which
toolboxes are installed on the system from which you run MATLAB. The ver function
displays a list of all currently installed MathWorks® products. If you can locate the
toolbox you need in the output displayed by ver, then the toolbox is installed. For help
with installing MathWorks products, see the Installation Guide documentation.

If you do not see the toolbox and you believe that it is installed, then perhaps the MATLAB
path has been set incorrectly. Go on to the next section.

Verify the Path Used to Access the Function

This step resets the path to the default.

Because MATLAB stores the toolbox information in a cache file, you will need to first
update this cache and then reset the path. To do this,

1
On the Home tab, in the Environment section, click Preferences.

The Preference dialog box appears.

(^2) Under the MATLAB > General node, click the Update Toolbox Path Cache button.
3
On the Home tab, in the Environment section, click Set Path....
The Set Path dialog box opens.
(^4) Click Default.
A small dialog box opens warning that you will lose your current path settings if you
proceed. Click Yes if you decide to proceed.
(If you have added any custom paths to MATLAB, you will need to restore those later)
Run ver again to see if the toolbox is installed. If not, you may need to reinstall this
toolbox to use this function. See the Related Solution 1-1CBD3, "How do I install
additional toolboxes into my existing MATLAB" for more information about installing a
toolbox.
Once ver shows your toolbox, run the following command to see if you can find the
function:
which -all
1 Syntax Basics

Free download pdf