Deploying MATLAB Based Applications - Java Edition

 

register

Course Highlights
This one-day course focuses on using MATLAB Compiler and MATLAB Builder JA (for Java language). Through hands-on examples and exercises, the course explores building Java applications and Web applications that incorporate MATLAB® code and creating standalone applications from MATLAB code. Topics include:

  • Deployment options
  • MATLAB Compiler
  • Integrating MATLAB code with Java applications
  • Java components with inputs and outputs
  • Java component interface considerations
  • Web deployment


Course Objectives
The aim of the course is to provide basic knowledge for participants to use MATLAB Complier and MATLAB Builder JA effectively.

Duration
1 day

Prerequisites
Attended "Comprehensive MATLAB" or equivalent experience wth MATLAB basic working and knowledge of the Java programming language .

Course Outline

Deployment Options
Objective:
Become familiar with various deployment options using MATLAB Compiler and compiler-based tools.

  • Application Deployment Process
  • Builder Products Overview
  • MATLAB Builder EX
  • MATLAB Builder NE
  • MATLAB Builder JA
  • Compiler Architecture Components
  • Desktop Deployment Components and Workflow
  • Web Deployment Components

MATLAB Compiler
Objective: Use Deployment Tool to create standalone executable from MATLAB files.

  • Configuring the Environment
  • Building Standalone Executable
  • Handling Inputs
  • Handling GUI Wrappers
  • Packaging the Application
  • Desktop Deployment Components
  • MATLAB Compiler Runtime (MCR)

Integrating MATLAB® Code with Java Applications
Objective: Build a Java software component from MATLAB code and incorporate the component into a Java application.

  • The Build Process
  • Writing and Testing MATLAB Code
  • Creating a MATLAB based Java Component
  • Building the Java Component
  • Writing the Java Application
  • Importing the MATLAB based Component
  • Building and Running the Java Application

Java Components with Inputs and Outputs
Objective: Incorporate MATLAB based Java components that send/receive inputs and outputs to/from a Java application.

  • Java Component Input/Output
  • Building the Java Component
  • Using MWArrays for Input
  • Navigating the Javadoc for MWArrays
  • Creating and Using MWNumericArrays
  • Creating and Using MWCharArrays
  • Using MWArrays for Output
  • Building/Running the Java Application
  • Working with Other Data Types

Java Component Interface Considerations
Objective: Apply commonly-used features such as variable inputs and outputs as well as error handling.

  • Interface Features
  • Building the Java Component
  • Variable Input and Output Arguments
  • The MWException Class
  • Memory Management
  • Understanding the MCR
  • Building/Running the Java Application

Web Deployment

Objective: Deploy a Web application using a Java component inside a Java Servlet and display MATLAB-generated graphics on a Web page.

  • Web Application Architecture
  • Building the Java Component
  • Writing a Java Servlet
  • Writing an HTML Form
  • Writing an XML Descriptor
  • Creating a Web Archive File
  • Deploying a Web Archive
  • Running the Application from a Web Browser
  • Using Graphics with the WebFigures Object