MatlabのediterでPythonScriptを変更し、実行しても変更したPythonScriptが反映されません。
이전 댓글 표시
Matlab
mod = py.importlib.import_module('Sample01');
result = mod.function(5,2);
disp(result)
Python
def function(a,b):
return a + b
実行すると
7
Pythonを変更
def function(a,b):
return a - b
実行すると
7
MatlabのエディターでPythonの内容を変更しても反映されません。
Matlab自体を再起動すると変更内容が反映されます。
メニューの方にもソースを更新するようなものが見当たりません。
使用しているMatlabは、R2021bのトライアルバージョンです。
使用しているPythonは、3.8.10、OSはWindows10です。
よろしくお願いいたします。
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB の Python ライブラリ에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!