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

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 件)

カテゴリ

質問済み:

2021 年 3 月 24 日

コメント済み:

2021 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!