1.7. Search Path

Whenever any command is entered at the command prompt or a script file is executed, MATLAB searches for the appropriate code to execute the command. Many directories or folders in MATLAB contain code for various functions contained in different Toolboxes and more folders may be added by the user. The ‘search path’ guides MATLAB to locate the appropriate program for executing the command. Whenever a ‘word’ is entered at the command prompt, the MATLAB follows the following steps in order to interpret it correctly:

1.
First, it is assumed that the word is a variable, if found in workspace, MATLAB displays its contents in the Command Window.
2.
If it is not a variable name, it is assumed as a built-in function or command, if found, ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.