Skip to Main Content Skip to Search
Product Documentation

ctfroot - Location of files related to deployed application (CTF archive)

Syntax

ctfroot

Description

root = ctfroot returns a string that is the name of the folder where the CTF file for the deployed application is expanded.

This function differs from matlabroot, which returns the path to where core MATLAB functions and libraries are located. matlabroot returns the root directory of the MCR when run against an installed MCR.

To determine the location of various toolbox folders in deployed mode, use the toolboxdir function.

Examples

appRoot = ctfroot; will return the location of your deployed application files in this form: application_name_mcr.

Use this function to access any file that the user would have included in their project (excluding the ones in the packaging folder).

How To

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS