| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Compiler |
| Contents | Index |
| Learn more about MATLAB Compiler |

MATLAB is an interpreted programming environment. You can execute functions directly at the command prompt or through an editor in saved files. Methods may be created, having their own unique inputs and outputs. When deploying a MATLAB function to other programming environments, such as .NET and Java, you must contain your M-code within functions. MATLAB Compiler does not allow you to use inline scripts.
The following examples demonstrate how to perform basic MATLAB programmer tasks for deployed applications; they do not attempt to represent every way a MATLAB programmer can interface with MATLAB. Upcoming topics demonstrate how to use various data types in deployed applications. For more specific information about any of these data types, see the documentation for the product you are using (MATLAB Compiler, MATLAB Builder JA, or MATLAB Builder NE)
Creating a Deployable MATLAB Function
MATLAB allows many different deployable data types. This section contains examples of how to work with figures. For an in-depth explanation of how to work with MATLAB primitive data types, see the MATLAB External Interfaces documentation.
Often, you are dealing with images displayed in a figure window, and not just string and numerical data. Deployed Web applications can support figure window data in a number of ways. By using the WebFigures infrastructure (see Deploying a Java Component Over the Web in the MATLAB Builder JA User's Guide or Deploying a MATLAB Figure Over the Web Using WebFigures in the MATLAB Builder NE User's Guide), the respective builder marshalls the data for you.
Alternatively, you can take a snapshot of what is in the figure window at a given point and convert that data into the raw image data for a specific image type. This is particularly useful for streaming the images across the web.
Returning Data from a WebFigure Window
Reorienting a Figure and Returning It as Data
![]() | MATLAB Programmer Tasks | Deploying MATLAB Code with the Builders | ![]() |

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 |