필터 지우기
필터 지우기

Update Python module in Matlab

조회 수: 15 (최근 30일)
Evan
Evan 2015년 8월 13일
답변: Evan 2015년 8월 14일
I'm trying to run a Python script using Matlab's built-in py. It's pretty simple, but I'm running into some difficulty drying to debug an error in my code (which runs fine testing in my Python IDE but crashes when run through Matlab).
The issue is that Matlab seems to be caching the module the first time I call a function, and I can't figure out how to get it to recognize changes to the module without restarting Matlab. Is anyone aware of a way to avoid this issue?
  댓글 수: 2
Robert Snoeberger
Robert Snoeberger 2015년 8월 14일
Your question is possibly a duplicate of python reload() function matlab 2014b.
Evan
Evan 2015년 8월 14일
Indeed it is. Thanks, I'll close this.

댓글을 달려면 로그인하십시오.

채택된 답변

Evan
Evan 2015년 8월 14일
Editing and reloading a Python® module in the same MATLAB session. To use an updated module, restart MATLAB.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by