- Working With MATLAB
-
Working With MATLAB
This section describes basic activities that you perform in the MATLAB statistical application as it is implemented in the RCE. It includes information about how to perform the following:
- Launch and exit from the menus and from the command prompt
- Access help
- Install new components
See Implementation Details for general information about the implementation of MATLAB in the RCE, including where to find out more about the tool.
For information about how to access the RCE, refer to Connecting to the RCE Summer 2009.
- Launching and Exiting MATLAB
-
Launching and Exiting MATLAB
You can launch MATLAB in the RCE by using the menus or by typing a command.
Launching MATLAB
To launch MATLAB by using the menus in the RCE, select the Applications menu Mathematics submenu, and then choose Matlab to launch the tool.
To launch MATLAB from the CLI, open a terminal window and type the command
matlabat the prompt.Exiting MATLAB
To exit MATLAB, select the File menu Exit MATLAB option.
- Accessing Built-in Help in MATLAB
-
Accessing Built-in Help in MATLAB
When you launch MATLAB, two interfaces are opened: the MATLAB tool and the MATLAB Help browser.

To access Help, do one of the following:
-
Move to the Help browser window
-
Click the Help button (the Question Mark) in the MATLAB tool.
-
Press F1.
Image(s): -
- Listing and Installing Functions in MATLAB
-
Listing and Installing Functions in MATLAB
There are many types of functions that you can use in MATLAB. As described in MATLAB Help:
"MATLAB features a family of add-on application-specific solutions called toolboxes. Very important to most users of MATLAB, toolboxes allow you to learn and apply specialized technology. Toolboxes are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB environment to solve particular classes of problems. Areas in which toolboxes are available include signal processing, control systems, neural networks, fuzzy logic, wavelets, simulation, and many others."
- Listing Functions Available in MATLAB
-
Listing Functions Available in MATLAB
For information about the functions available within MATLAB, move to the Help browser window. In the Contents, expand the MATLAB option and select either of the following subjects: Functions - By Category or Functions - Alphabetical list. Then use the browser to view information about all libraries, interfaces, functions, and objects available in this application.
- Installing MATLAB Functions
-
Installing MATLAB Functions
MATLAB can access C programs built into shared libraries. The application's CLI enables you to load an external library into MATLAB and then access the functions defined in that library. You also can load a library programmed in other languages as long as the library has a C interface to communicate with MATLAB core code.
MATLAB does not support libraries that make use of function pointer inputs.
For information about how to load an external library into MATLAB, move to the Help browser window. In the Contents, expand the MATLAB option and select the External Interfaces subject. Follow the instructions in the content panel to load a local library.
You also can install new, licensed MATLAB toolboxes. Use the Help browser to find information about adding toolboxes.
Also, remember that you can contact us and request that we install a MATLAB function.
- Locating MATLAB Directories
-
Locating MATLAB Directories
To add, change, or view the directories in which MATLAB looks for files or to which MATLAB saves files, select the File menu, and choose the Set Path option. The Set Path window is displayed.

The default installation directory for MATLAB libraries is:
/usr/local/matlab/R2006a/toolbox/matlab
To view the contents of this directory, type the following command in a terminal window:
> ls /usr/local/matlab/R2006a/toolbox/matlab
audiovideoelfun graph3d imagesciopsspecgraph verctrl
codetoolselmat graphicsiofun polyfun strfun
datafunfunfun hds lang scribe timefun
datatypesgeneral helptoolsmatfun sparfun timeseries
demosgraph2dicons mcc.enc specfun uitools
>Image(s):