이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Java에서 MATLAB 호출하기
Java 프로그램에서 동기식 또는 비동기식으로 MATLAB 함수를 호출하고 MATLAB 명령문을 실행합니다. Java 프로그램은 데이터를 MATLAB 작업 공간으로 전달하고 이 작업 공간에서 데이터를 가져올 수 있습니다. 이 엔진은 JDK™로 작성된 Java 응용 프로그램을 지원합니다. 버전 정보는 MATLAB Interfaces to Other Languages를 참조하십시오.
MATLAB에서 Java 함수를 호출하려면 MATLAB에서 Java 호출하기 항목을 참조하십시오.
함수
클래스
도움말 항목
시작하기
- Java용 MATLAB Engine API
이 API를 사용하면 Java 프로그램이 MATLAB을 계산 엔진으로 사용할 수 있습니다. - Java 엔진 프로그램 빌드하기
환경 변수, Java 클래스 경로를 설정하고, Java 코드를 컴파일하고 실행합니다. - Java 예제 소스 코드
이 예제에서는 Java용 MATLAB Engine API를 사용하는 방법을 보여줍니다.
Java Engine API 개요
- Java Engine API Summary
Here is a summary of the classes and methods available to use the MATLAB Engine API for Java. - Java Data Type Conversions
The MATLAB engine API provides mappings to pass Java data types to MATLAB and pass MATLAB data types to Java, including Java classes to accommodate MATLAB handle objects, cellstrs, structures, and complex arrays.
Java용 MATLAB Engine API 사용하기
- Start and Close MATLAB Session from Java
Start the Java engine session synchronously or asynchronously and you can pass startup options to MATLAB. - Connect Java to Running MATLAB Session
Connect the Java engine to a running MATLAB session that has been started as or converted to a shared session. - Java에서 MATLAB 함수 실행하기
Java 변수를 MATLAB 함수 호출에 전달하고 값을 Java에 반환합니다. - Evaluate MATLAB Statements from Java
Evaluate MATLAB expressions from Java and write variables into the MATLAB base workspace. - Pass Variables from Java to MATLAB
Pass variables from Java to MATLAB as function arguments or by placing those variables in the MATLAB base workspace. - Pass Variables from MATLAB to Java
Get variables from the MATLAB workspace and map them to the appropriate Java type. - Redirect MATLAB Command Window Output to Java
Redirect standard output from the MATLAB command window to Java.
Java용으로 특화된 MATLAB 데이터형
- Using Complex Variables in Java
Define complex numbers in Java using theComplex
class. - Using MATLAB Structures in Java
Define MATLAB structure data types in Java using theStruct
class. - Pass Java CellStr to MATLAB
Define a MATLAB cell array of character vectors using the JavaCellStr
class. - Using MATLAB Handle Objects in Java
Return MATLAB handle objects to Java using the JavaHandleObject
class.
Java에서 MATLAB 기능 사용하기
- Java에서 Simulink 시뮬레이션 실행하기
Simulink® 시뮬레이션을 실행하고 그 결과를 Java에 반환할 수 있습니다.
문제 해결
The MATLAB Engine API for Java defines specific exception classes for MATLAB.
Pass Java Array Arguments to MATLAB
MATLAB and Java display multidimensional arrays differently, but indexed references to array elements produce the same results.
출력 인수가 없거나 둘 이상의 출력 인수를 갖는 MATLAB 함수를 호출할 경우 호출에서 그 개수를 엔진 feval
메서드에 제공해야 합니다.
In certain cases, you must convert to specific MATLAB types to support the requirements of the MATLAB function you are calling.