- Open Excel
- Verify that you have the correct preferences set to be able to debug:
- Select "Preferences" from the MATLAB menu in the "Home" tab of the ribbon.
- Check "Use MATLAB desktop".
- Click "OK"
- Start MATLAB from Excel
- Select "Start MATLAB" from the MATLAB menu in the "Home" tab of the ribbon.
- You should see MATLAB start.
- In MATLAB, navigate to the folder where the function you want to debug is present.
- Put a break point in that function.
- In Excel, run the VBA code which calls the MATLAB function.
How can I debug my MATLAB code called from Excel using Spreadsheet Link?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 6월 15일
답변: MathWorks Support Team
2017년 7월 7일
I have written a function in MATLAB which I am calling from Excel using Spreadsheet Link. I want to be able to debug my MATLAB code when I run the VBA code.
채택된 답변
MathWorks Support Team
2018년 2월 7일
Before you begin, I recommend closing all open MATLAB sessions. Spreadsheet Link will start an instance of MATLAB to use. Closing other MATLAB windows will make it easier for you to locate the MATLAB instance started by Excel.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!