주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

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)에서 호출되지 않으면 패키징할 수 없습니다.

Python 패키지 컴파일러Package MATLAB programs for deployment as Python packages (R2025a 이후)

함수

모두 확장

compiler.build.pythonPackageCreate Python package for deployment outside MATLAB (R2021a 이후)
compiler.build.PythonPackageOptionsOptions for building Python packages (R2021a 이후)
compiler.build.ResultsCompiler build results object
compiler.package.installerCreate an installer for files generated by MATLAB Compiler
compiler.package.InstallerOptionsOptions for creating MATLAB Compiler package installers
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 macOS

도움말 항목

요구 사항 및 주요 내용

Python을 사용하여 생성 및 통합하기

샘플 애플리케이션

데이터 변환