| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
toolboxdir('tbxFolderName')
s = toolboxdir('tbxFolderName')
s = toolboxdir tbxFolderName
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.
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.
Obtain the path for the Control System Toolbox software:
s = toolboxdir('control')
MATLAB returns:
s = \\myhome\r2009a\matlab\toolbox\control
ctfroot (in the MATLAB Compiler product), fullfile, matlabroot, path,
![]() | toeplitz | trace | ![]() |

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 |