Source Control Interface on UNIX Platforms
If you use a source control system to manage your files, you can check MATLAB program files and Simulink models, and Stateflow charts into and out of the source control system from within the MATLAB, Simulink, and Stateflow products ... Perform source control interface actions for a single file using menu items in the MATLAB Editor, a Simulink model window, or a Stateflow chart
Next Steps After Getting an Accurate Model
System Identification Toolbox models in the MATLAB workspace are immediately available to other MathWorks ® products ... However, if you used the System Identification Tool GUI to estimate models, you must first export the models to the MATLAB workspace ... Troubleshooting Models
xpctest - Test xPC Target installation
MATLAB command line ... If the target hardware does not support software rebooting, or to skip the reboot test, in the MATLAB window, type ... Installation Troubleshooting
Data Conversion Flags
This flag tells the data converter to convert all numeric VARIANT data to one specific MATLAB type ... This flag tells the data converter how to convert VARIANT dates to the MATLAB dates ... By default, numeric dates that are output parameters from compiled MATLAB functions are passed as Doubles that need to be decremented by the COM date bias (693960) as well as coerced to COM dates
Working with Legacy Report Templates
Legacy report templates are files that you created in previous versions of the MATLAB Report Generator or Simulink Report Generator software ... When you enable Version 1 mode, you can use previous versions of MATLAB Report Generator or Simulink Report Generator interfaces ... You cannot use a report template created in the latest version of the MATLAB Report Generator or Simulink Report
Working with Legacy Report Templates
Legacy report templates are files that you created in previous versions of the MATLAB Report Generator or Simulink Report Generator software ... When you enable Version 1 mode, you can use previous versions of MATLAB Report Generator or Simulink Report Generator interfaces ... You cannot use a report template created in the latest version of the MATLAB Report Generator or Simulink Report
GigE Vision Hardware
Run the imaqsupport function for further troubleshooting information ... Run the imaqsupport function for further troubleshooting information ... Run the imaqsupport function for further troubleshooting information ... Troubleshooting GigE Vision Devices on Windows ... Troubleshooting GigE Vision Devices on Linux ... Troubleshooting GigE Vision Devices on Mac ... Troubleshooting GigE Vision Devices on
Support for Additional Hardware
where matlabroot represents your MATLAB installation directory ... Troubleshooting
Setting Preferences
There are three GigE Vision related preferences in the Image Acquisition Preferences accessible from the File > Preferences command in MATLAB ... Troubleshooting
Version 1.1 (R13SP1) Image Acquisition Toolbox Software
A troubleshooting utility is now included in the matlabroot /toolbox/imaq/imaq directory called AMCap.exe ... A MATLAB segmentation fault that occurred when using old versions of the Matrox MIL library has been fixed
Design Optimization Tool Session
To save the session as a model or MATLAB workspace variable, select Save to model workspace or Save to base workspace in the Save drop-down list ... Refining and Troubleshooting Optimization Results
xpctargetping - Test communication between host and target PCs
MATLAB command line ... Installation Troubleshooting
Accelerating Model Simulations and Analyses
Normally, when simulating or analyzing a model in SimBiology, you express the model in MATLAB code ... You can also use mex -setup to choose and configure a different C compiler, as described in Building MEX-Files in the MATLAB External Interfaces documentation ... Ensure that any user-defined functions in your model can be used for code generation from MATLAB, so they can convert to
Running the Uninstall Program Noninteractively
Note For information about installing MATLAB noninteractively, see Installing Noninteractively (Silent Installation) ... Make a copy of the uninstaller properties file template, named uninstaller_input.txt, located in the uninstall folder in your MATLAB installation folder ... By default, the uninstaller removes all the products in a particular MATLAB installation, however, you can
Exporting and Importing Environment Properties
When you have settings that you are happy with, you can save them as variables in the MATLAB workspace ... This topic describes how to export target computer node property settings in a structured format to the MATLAB workspace ... On 64-bit computers, use the MATLAB command-line interface ... The following illustrates a MATLAB workspace with two xPC Target Explorer environment configuration
mxAssert (C) - Check assertion value for debugging purposes
If expr evaluates to logical 0 (false), mxAssert prints an error to the MATLAB command window consisting of the failed assertion's expression, the filename and line number where the failed assertion occurred, and the error_message string ... For information about MATLAB behavior after a failed assertion, see in the Desktop Tools and Development Environment documentation
Analyzing Estimated Frequency Response
Use the Simulation Results Viewer to analyze the results of your frequency response estimation, obtained by performing the steps in Estimating Frequency Response (MATLAB Code) ... If the frequency response does not match the dynamics of your system, see Troubleshooting Frequency Response Estimation for information about possible causes and solutions ... View Simulation Results (MATLAB
C Code Interface for Unbounded Arrays and Structure Fields
In generated code, MATLAB represents data with unknown upper bounds as a structure type called emxArray ... An embeddable version of the MATLAB mxArray, the emxArray is a family of data types, specialized for all base types ... If the size changes, MATLAB reallocates memory based on the new size ... To create and interact with emxArrays in your generated code, MATLAB provides a set of utility
Booting Issues
If your host computer has antivirus software, it might conflict with the MATLAB software ... Disable the software while using the MATLAB interface ... If problems persist, see Hardware Boot Troubleshooting of the xPC Target Getting Started Guide ... Is Your Host PC MATLAB Interface Halted? ... Is Your Host PC MATLAB Interface Halted? ... If your host computer MATLAB interface halts while creating an xPC
Worksheet Cell Errors
Your MATLAB variable exceeds the Microsoft Excel limit of #MAXCOLS! columns ... The MATLAB software does not recognize the command in an MLEvalString function ... Verify the spelling of the MATLAB command ... Make sure to use legal MATLAB variable names ... MATLAB variable names must start with a letter followed by up to 30 letters, digits, or underscores ... You have specified an illegal MATLAB data
Debugging Fortran Source MEX-Files
Binary MEX-files built with the -g option do not execute on other computers because they rely on files that are not distributed with MATLAB software ... Refer to the "Calling C/C++ and Fortran Programs from MATLAB" topic Troubleshooting MEX-Files for additional information on isolating problems with MEX-files ... The MATLAB supported Fortran compiler g95 has a -g option for building
print - Print figure or save to file
For details, see "How to Print or Export" in the MATLAB Graphics documentation ... The following table shows the more widely used printer drivers supported by MATLAB software ... For a list of all supported printer drivers, type print -d at the MATLAB prompt ... Note On Windows systems, when you use the -P option to identify a printer to use, if you specify any driver other than -dwin or ... MATLAB
Working with Scope Plots
The Zoom In and Zoom Out toolbar buttons change the axes as described in the MATLAB documentation about zooming in 2-D views ... Exporting to a FIG-file enables you to reload it in a different MATLAB software session ... Using Plots for Troubleshooting
Table of MEX Examples
Use mexEvalString to assign variables in MATLAB ... Use mexGetVariable and mexPutVariable to track counters in the MEX-file and in the MATLAB global workspace ... Control MATLAB response to errors in mexCallMATLAB ... Demonstrate MATLAB 1-based matrix indexing versus C 0-based indexing ... Create MATLAB structure from C structure ... Allocate memory to copy a MATLAB string to a C string ... Troubleshooting
Configuring Target Application
In the MATLAB Command Window, type xpcexplr ... On 64-bit computers, use the MATLAB command-line interface ... MATLAB loads the oscillator model and displays the Simulink block diagram, as shown below ... MATLAB loads the oscillator model and displays the Simulink block diagram ... After the compiling, linking, and downloading process, a target object is created in your MATLAB workspace
Configuring Environment for 64-Bit Systems
You must set up the xPC Target environment from the MATLAB command line ... See Installation Troubleshooting ... See Installation Troubleshooting ... If you want to add another to your environment, type the following in the MATLAB Command Window: ... For further information on working in the xPC Target environment from the MATLAB Command Window, see the following sections in the xPC Target User's
Interactive Data Selection
Enter cftool at the MATLAB command line ... To select data to fit, use the drop-down lists in the Curve Fitting Tool to select variables in your MATLAB workspace ... You can use the Curve Fitting Tool drop-down lists to select any numeric variables (with more than one element) in your MATLAB workspace ... Troubleshooting Data Problems ... Select from the MATLAB Start menu: ... Troubleshooting Data
Calling Functions in Shared Libraries
This MATLAB interface supports libraries containing functions programmed in any language, provided the functions have a C interface ... MATLAB supports dynamic linking on all supported platforms ... MATLAB accesses C routines built into external, shared libraries through a command-line interface ... This interface lets you load an external library into MATLAB memory and access functions in the
DCAM IEEE 1394 (FireWire) Hardware on Windows
where matlabroot represents the name of your MATLAB installation directory ... Troubleshooting DCAM IEEE 1394 Hardware on Windows ... Troubleshooting DCAM IEEE 1394 Hardware on Windows ... If you are having trouble using the Image Acquisition Toolbox software with an IEEE 1394 (FireWire) camera, using the toolbox's dcam adaptor, follow these troubleshooting steps:
Debugging
Use parameters on the Diagnostics and Code Generation > Debug panes of the Configuration Parameter dialog box to configure a model such that generated code and the build process are optimized for troubleshooting ... Alternatively, you can use MATLAB commands to control TLC assertion handling ... Also, consider using the Model Advisor as a tool for troubleshooting model builds
How to Use Parallel Computing (GUI)
With a basic Parallel Computing Toolbox license, you can establish a pool of up to four parallel MATLAB sessions in addition to the MATLAB client ... To use parallel computing on a multiprocessor network, you must have the Parallel Computing Toolbox software and the MATLAB ® Distributed Computing Server™ software ... To learn more, see the Parallel Computing Toolbox and MATLAB Distributed
How to Use Parallel Computing
With a basic Parallel Computing Toolbox license, you can establish a pool of up to four parallel MATLAB sessions in addition to the MATLAB client ... To use parallel computing on a multiprocessor network, you must have the Parallel Computing Toolbox software and the MATLAB Distributed Computing Server software ... To learn more, see the Parallel Computing Toolbox and MATLAB Distributed
Debugging C/C++ Language MEX-Files
Binary MEX-files built with the -g option do not execute on other computers because they rely on files that are not distributed with MATLAB software ... Refer to the "Calling C/C++ and Fortran Programs from MATLAB" topic Troubleshooting MEX-Files for additional information on isolating problems with MEX-files ... This section describes how to debug using the default compiler, that is, the
Automatically Importing Structured Text Code
If it is not already started, start the MATLAB Command Window ... Troubleshooting Automatic Import Issues ... Troubleshooting Automatic Import Issues
Configuring Your MathWorks Software to Work with Eclipse
At the MATLAB command line, enter eclipseidesetup ... Enter the following command in MATLAB ... Troubleshooting with Eclipse IDE
Importing MAT-Files
MAT-files are binary MATLAB format files that store workspace variables ... The byte counts represent the number of bytes that the data occupies when loaded into the MATLAB workspace ... In Version 7 or higher MAT-files, MATLAB compresses data ... Caution When you import data into the MATLAB workspace, the new variables you create overwrite any existing variables in the workspace that have the
Enhancing Readability of Generated Code for Flow Graphs
The MATLAB functions in the chart contain the code in the following table ... Note You do not have to change the inlining property for the other three MATLAB functions in the chart ... Because the MATLAB function light no longer appears inlined, the conversion to switch-case statements occurs ... Troubleshooting the Generated Code ... The chart contains a flow graph and four MATLAB functions:
Problems During Installation
When the installation is complete and the installer displays the Installation Complete dialog box, leave the Activate MATLAB option selected and click Next ... Troubleshooting
Limitations with Variable-Size Support for Code Generation
During code generation, the standard MATLAB scalar expansion rules apply except when adding two variable-size expressions ... MATLAB does not perform scalar expansion even if one of the variable-size expressions is scalar ... For variable-size N-D arrays, the size function can return a different result in generated code than in MATLAB ... For example, size(A,n) always returns the same answer
IBM Rational DOORS
Start the DOORS and MATLAB software ... Set the Model file reference option to none (on MATLAB path) ... For this exercise, you save a copy of the demo model on the MATLAB path ... If you are adding requirements to a model that is not on the MATLAB path, select absolute, to indicate an absolute path to the model ... Rename the sldemo_fuelsys model and save it in a writable folder on the MATLAB path
Real-Time Simulation
See the following section, Troubleshooting Real-Time Simulation Problems ... If the simulation does not run in real time on the selected real-time target, perform a sixth, contingent task, described in the following section, Troubleshooting Real-Time Simulation Problems ... With scripts written in MATLAB, you can interrogate the model, identify these components quickly, and narrow the
Simscape
On some Linux systems, to properly display Asian characters in the MATLAB Desktop, you must configure the font with the Java Runtime Environment (JRE™) ... If you previously configured fonts for your system, you must also make the configuration changes for the JRE distributed with MATLAB ... To configure, make a symbolic link between your font and the MATLAB font fallback directory
Speedup Using Parallel Computing
When you use parallel computing, Simulink Design Optimization software distributes independent simulations to run them in parallel on multiple MATLAB sessions, also known as workers ... When you enable parallel computing, Simulink Design Optimization software distributes independent simulations during optimization on multiple MATLAB sessions ... where is the number of MATLAB workers
Failure Points and Possible Solutions
Use the following list of questions to diagnose some of the more common issues associated with using MATLAB Compiler software ... You typically compile your MATLAB code on a development machine, test the resulting executable on that machine, and deploy the executable and MATLAB Compiler Runtime (MCR) to a test or customer machine without MATLAB ... See error messages in MATLAB Compiler
Accessibility
Because you will be using a general Web browser, you will not be able to use the search feature included in the MATLAB Help browser ... The cross-product index of the MATLAB Help browser is not available when you are using a general Web browser ... MATLAB — Many sections, but not the function reference pages ... This section describes the installation process for setting up your MATLAB
Compiling Engine Applications in an IDE
If your integrated development environment (IDE) has a MATLAB-supported compiler, you can use the IDE to build engine applications ... When you build using the mex command, MATLAB is configured to locate these files ... MATLAB uses these libraries to support Unicode character encoding and data compression in MAT-files ... In your IDE, set the pre-processor include path to the value returned by
Building Simulink Models to Acquire Data from a Device
Note You cannot use the legacy interface on 64–bit MATLAB ... Note You cannot use the legacy interface on 64–bit MATLAB ... at the MATLAB Command Window ... Troubleshooting Your Hardware
Target Boot Method
On 64-bit computers, use the MATLAB command-line interface ... For example, enter C:\Work\matlab ... See Installation Troubleshooting ... See Installation Troubleshooting ... On 64-bit computers, use the MATLAB command-line interface ... On 64-bit computers, use the MATLAB command-line interface ... See Installation Troubleshooting ... The write procedure starts and, while creating the boot drive, the MATLAB
About Data Servers and Data Service Providers
Note You must have a Bloomberg software license for the host on which the Datafeed Toolbox and MATLAB software are running ... For information on how to specify these settings, see Specify Proxy Server Settings for Connecting to the Internet in the MATLAB documentation ... Troubleshooting Issues with Reuters Configuration Editor
Configuring Your MathWorks Software to Work with Eclipse
At the MATLAB command line, enter eclipseidesetup ... Enter the following command in MATLAB ... Troubleshooting with Eclipse IDE