How to pass an array of float numbers from Python to MATLAB function

3 ビュー (過去 30 日間)
Peter Schaefer
Peter Schaefer 2020 年 7 月 1 日
コメント済み: Peter Schaefer 2020 年 7 月 3 日
Hello,
I am working in Python and use some functions written in MATLAB that I have as compiled library for Python. I need to pass an array fo floating point numbers to the function as one of the parameters. On a Ubuntu system, the data type for the the numbers in Python is 'float' but when it's passed to MATLAB it seems to be treated as data type numpy.float64 - and I get an error message that this not a supported data type.
I just can't believe that you can't pass a simple array of floating numbers from Python to a MATLAB function - what am I doing wrong?
Thanks
Peter
  2 件のコメント
Bhuvanyu Dogra
Bhuvanyu Dogra 2020 年 7 月 3 日
Hey,
please look at the accepted answer from the following, it could be helpful
Peter Schaefer
Peter Schaefer 2020 年 7 月 3 日
OK, this is not as straight forward as I hoped for, but it at least I have a solution.
Thanks
Peter

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangePython Package Integration についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by