Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

toolboxdir - Root folder for specified toolbox

Syntax

toolboxdir('tbxFolderName')
s = toolboxdir('tbxFolderName')
s = toolboxdir tbxFolderName

Description

toolboxdir('tbxFolderName') returns a string that is the absolute path to the specified toolbox, tbxFolderName, where tbxFolderName is the folder name for the toolbox.

s = toolboxdir('tbxFolderName') returns the absolute path to the specified toolbox to the output argument, s.

s = toolboxdir tbxFolderName is the command form of the syntax.

Remarks

toolboxdir is particularly useful for MATLAB Compiler software. The base folder of all toolboxes installed with MATLAB software is:

matlabroot/toolbox/tbxFolderName

However, in deployed mode, the base folders of the toolboxes are different. toolboxdir returns the correct root folder, whether running from MATLAB or from an application deployed with the MATLAB Compiler software.

Example

Obtain the path for the Control System Toolbox software:

s = toolboxdir('control')

MATLAB returns:

s = \\myhome\r2009a\matlab\toolbox\control

See Also

ctfroot (in the MATLAB Compiler product), fullfile, matlabroot, path,

Managing Files in MATLAB

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS