| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Builder EX |
| Contents | Index |
| Learn more about MATLAB Builder EX |
As of R2008b, CTF data is automatically embedded directly in MATLAB Builder EX components by default. In order to extract the CTF archive manually, you must build the component using the mcc-C option.
If you do not use the mcc-C option to specify that a separate CTF file is to be generated, you can add environment variables to specify various options, such as:
Defining the location where you want the CTF archive to be extracted
Adding diagnostic error printing options that can be utilized when extracting the CTF, for troubleshooting purposes
Tuning the MCR component cache size for performance reasons.
Use the following environment variables to change these settings.
| Environment Variable | Purpose | Notes |
|---|---|---|
| MCR_CACHE_ROOT | When set to the location of where you want the CTF archive to be extracted, this variable overrides the default per-user component cache location. | Not applicable |
| MCR_CACHE_VERBOSE | When set, this variable prints details about the component cache for diagnostic reasons. This can be very helpful if problems are encountered during CTF archive extraction. | Not applicable |
| MCR_CACHE_SIZE | When set, this variable overrides the default component cache size. | The initial limit for this variable is 32M (megabytes). This may, however, be changed after you have set the variable the first time. Edit the file .max_size, which resides in the file designated by running the mcrcachedir command, with the desired cache size limit. |
Note If you run mcc specifying conflicting wrapper and target types, the CTF will not be embedded into the generated component. For example, if you run: mcc -W lib:myLib -T link:exe test.m test.c the generated test.exe will not have the CTF embedded in it, as if you had specified a -C option to the command line. |
Caution Do not extract the files within the.ctf file and place them individually under version control. Since the .ctf file contains interdependent MATLAB functions and data, the files within it must be accessed only by accessing the .ctf file. For best results, place the entire .ctf file under version control. |
![]() | Improving Data Access Using the MCR User Data Interface, COM Components, and MATLAB Builder EX | Usage Examples | ![]() |

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 |