Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
takashi kanda
takashi kanda el 24 de Mzo. de 2021
Comentada: Kojiro Saito el 29 de Mzo. de 2021
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 comentario
Kojiro Saito
Kojiro Saito el 29 de Mzo. de 2021
ご使用されているMATLABとPythonのバージョンと、sample.pyファイルの中身を提示いただけますか?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB の Python ライブラリ en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!