matlabからpythonの関数に行列を渡す

조회 수: 2 (최근 30일)
takashi kanda
takashi kanda 2021년 3월 24일
댓글: Kojiro Saito 2021년 3월 29일
MatlabからPythonのtest関数に引数を渡したいと思っています。
arg1=1 又は arg1=[1,2,3] の場合は動作することは確認しています。
しかし、以下のようにarg1を設定した場合、エラー(ModuleNotFoundError:No module named 'libmwbuffer')になりました。
行列を引数に渡すのは無理でしょうか。
arg1=[1,2,3; 4,5,6; 7,8,9];
pyout = py.sample.test(arg1);
  댓글 수: 1
Kojiro Saito
Kojiro Saito 2021년 3월 29일
ご使用されているMATLABとPythonのバージョンと、sample.pyファイルの中身を提示いただけますか?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB の Python ライブラリ에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!