main content

java package integration -凯发k8网页登录

integrate compiled matlab® functions into java® applications

with matlab compiler sdk™, integrating compiled matlab functions into a java application involves using a combination of apis that initialize matlab runtime, load the compiled matlab functions into matlab runtime, and manage the data that passes between java and matlab.

java packages and applications provide portable and scalable solutions for applications in large-scale enterprise or web environments. you can deploy generated packages to enterprise or web environments where matlab runtime is installed.

java remote method invocation (rmi) is a set of apis that enable java objects to invoke objects in a different java virtual machine (jvm). use rmi to develop client-server applications, distributed applications, and web applications. for such applications, only the portions of the application that directly invoke matlab functions require matlab runtime. the other portions of the application can work with native java data types.

functions

create java package for deployment outside matlab
options for building java packages
display version and location information for matlab runtime installer corresponding to current platform
return matlab runtime version number that matches matlab version

java api documentation

topics

requirements and highlights


  • refer to the software requirements for using matlab compiler sdk to create java packages.

  • configure the java environment to compile matlab code into java packages using matlab compiler sdk.

  • learn how the matlab compiler sdk java handles data.

  • learn about the function signatures created to handle matlab methods.

create and integrate with java

sample applications

  • integrate simple matlab function into java application
    learn how to integrate a matlab generated java package into a java application.

  • build a java application that displays a matlab plot.

  • encapsulate a matlab function that modifies a structure array containing phone numbers.

  • implement a signal analyzer application that incorporates multiple functions using dependency analysis.

  • create a java package containing multiple functions to implement a matrix math program.

  • use object-oriented design to deploy a matlab class in a java package.

  • build a java package that applies optimization routines to objective functions using the mwjavaobjectref class.

  • use waitforfigures in a console-based java application that generates matlab figures.

data management


  • see guidelines on how to convert data between java and matlab.

  • refer to the rules for converting java types to matlab types.

  • properly create and dispose of matlab data in your code.

  • see techniques to work effectively with figure and image data in your code.

  • specify profile information for parallel computing toolbox™ applications.

deployment considerations


  • manage deployable archive embedding and extraction behavior using either the mwcomponentoptions class or environment variables.

  • ensure platform independence in your compiled matlab code.

  • learn the data types that cannot be shared across java packages.

  • map matlab functions to java class methods during compilation.

remote method invocation


  • learn how rmi allows you to run separate processes on multiple machines.

  • try an example using rmi with a client and server.

  • see an example illustrating the use of native java cell and struct arrays.

troubleshooting java packages


  • common error messages during java package integration and possible workarounds.
网站地图