Excel 추가 기능
Windows® 시스템의 MATLAB® 함수로부터 Microsoft® Excel® 추가 기능 만들기
MATLAB Compiler™를 사용하면 Microsoft Excel과 함께 사용할 수 있도록 MATLAB 프로그램을 추가 기능으로 패키징할 수 있습니다. 사용자는 Excel 추가 기능을 통해 스프레드시트 데이터와 상호 작용하고, MATLAB Figure를 표시하고, 대화 상자를 여는 등의 작업을 수행할 수 있습니다.
Excel 추가 기능을 배포하려면 타깃 머신에 추가 기능과 MATLAB Runtime을 설치합니다. 설치 후 가능한 작업은 다음과 같습니다.
Excel 사용자 지정 함수의 형태로 추가 기능 함수를 직접 호출합니다. 예제는 Assign Multiple MATLAB Functions to Excel Class 항목을 참조하십시오.
함수 마법사를 사용하여 추가 기능 함수를 Excel 매크로에 통합합니다. 매크로를 사용하면 입력 셀과 출력 셀을 지정하고, 여러 개의 출력값을 처리하고, 추가 런타임 옵션을 설정할 수 있습니다. 함수 마법사 사용에 대한 예제는 Create Macro Using Multiple MATLAB Functions 항목을 참조하십시오.
사용자 지정 VBA(Visual Basic® for Applications) 코드를 사용하여 추가 기능 함수를 Excel 매크로에 통합할 수 있습니다. VBA 프로그래밍 기법에 대한 내용은 Integrate Components Using VBA 항목을 참조하십시오.
앱
Excel 추가 기능 컴파일러 | Package MATLAB programs for deployment as Excel add-ins (R2025a 이후) |
함수
compiler.build.excelAddIn | Create Microsoft Excel add-in (R2021a 이후) |
compiler.build.ExcelAddInOptions | Options for building Excel add-ins (R2021a 이후) |
compiler.package.installer | Create an installer for files generated by MATLAB Compiler |
compiler.package.InstallerOptions | Options for creating MATLAB Compiler package installers |
도움말 항목
요구 사항 및 주요 내용
- Excel Target Requirements and Limitations for MATLAB Compiler
See tasks you must perform before creating Excel add-ins using MATLAB Compiler. - How Excel Add-In Compilation Works
Overview of how MATLAB Compiler works with Excel add-ins.
추가 기능 생성 및 통합하기
- MATLAB에서 Excel 추가 기능 만들기
사용자 지정 함수가 포함된 추가 기능을 만들어 Excel 통합 문서에서 테스트합니다. - Create Excel Add-In Using Excel Add-In Compiler App
Create an Excel add-in that computes a magic square using the Excel Add-in Compiler app. - Distribute Add-Ins and Integrate into Microsoft Excel
To deploy add-ins, register the add-in and utility libraries, then install the add-in.
Excel에서 사용자 지정 함수 사용하기
- Assign Multiple MATLAB Functions to Excel Class
Create an Excel add-in with multiple functions and call your custom functions in Excel.
함수 마법사를 사용하여 매크로 만들기
- Create Macro Using Multiple MATLAB Functions
Use the Function Wizard to create a macro using MATLAB functions with variable-length inputs and outputs. - Create Macros with Graphical Functions
Create macros that display graphical output and dialog boxes using the Function Wizard. - Install and Use Function Wizard
Install the Function Wizard add-in and create macros using compiled MATLAB functions.
VBA를 사용하여 매크로 만들기
- Implement User Interface Using Visual Basic Form Controls
Use VBA form controls to create a spectral analysis application with a custom user interface. - Integrate Components Using VBA
Apply programming techniques for integrating your deployable Excel component into a Microsoft Visual Basic application.
데이터 교환 관리하기
- Reference Utility Classes
Reference the MWComUtil library in your VBA programming environment. - Data Conversion Rules
Learn the process of converting data between MATLAB and Microsoft COM variants. - Array Formatting Flags
Refer to the flags that control data formatting. - Data Conversion Flags
Refer to the flags that control data conversion.
문제 해결
- Errors and Solutions
View errors you may encounter using MATLAB Compiler, probable causes for these errors, and suggested solutions. - Deployment Product Terms
See descriptions for deployment product terms.