Main Content

Python 패키지 연동

컴파일된 MATLAB® 함수를 Python® 애플리케이션에 연동

MATLAB Compiler SDK™는 Python 메서드들을 제공하여 MATLAB Runtime을 초기화하고, 컴파일된 MATLAB 함수를 호출하고, Python 코드와 MATLAB Runtime 간에 전달되는 데이터를 관리할 수 있게 합니다.

호환되는 Python 버전의 목록은 MATLAB Supported Interfaces to Other Languages 항목을 참조하십시오.

MATLAB에서 Python을 호출하는 MATLAB 코드는 별도 프로세스(out-of-process)에서 호출되지 않으면 패키징할 수 없습니다.

함수

모두 확장

compiler.build.pythonPackageCreate Python package for deployment outside MATLAB (R2021a 이후)
compiler.build.PythonPackageOptionsOptions for building Python packages (R2021a 이후)
compiler.build.ResultsCompiler build results object (R2020b 이후)
compiler.package.installerCreate an installer for files generated by MATLAB Compiler (R2020a 이후)
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers (R2020a 이후)
myDeployedModule.initializePython module to initialize package and return a handle
myDeployedModule.initialize_runtimePython module to initialize MATLAB Runtime with a list of startup options
myDeployedModule.wait_for_figures_to_closePython module to wait for all graphical figures to close before continuing
myDeployedModule.terminatePython module to close a package
mwpythonStart a Python session using a MATLAB Compiler SDK Python package on Mac OS X

도움말 항목

요구 사항 및 주요 내용

Python을 사용하여 생성 및 연동하기

샘플 애플리케이션

데이터 변환