Run-time error of Python generated library when calling the resample function

Hi,
Using MATLAB R2017a, I generated a python package from a matlab function containing the " resample " function.
When I execute the resulting package on Ubuntu 16.04 (with Matlab Run-time R2017a configured), I get the following error:
--
Undefined function or variable 'upfirdnmex'.
Error in upfirdn (line 84)
Error in resample>uniformResample (line 242)
Error in resample (line 104)
--
Any help/suggestion on how to solve this issue?
Thanks in advance.

 採用された回答

nsejim
nsejim 2017 年 11 月 3 日

1 投票

I have found the problem. Actually, I was compiling the Python Library from MATLAB on MAC OS and then executing the library on Ubuntu ....
By compiling the library from MATLAB running on Ubuntu, the execution works well on Ubuntu ....

1 件のコメント

Mark Higger
Mark Higger 2018 年 10 月 5 日
I'm having the same issue, thank you for posting your solution. Do you know if there is a way to solve this without having access to Matlab on Ubuntu?

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

その他の回答 (1 件)

nsejim
nsejim 2018 年 10 月 5 日

0 投票

Hi. My solution was simply to compile the library on the same OS targeted for execution (run-time). Cross-platform compilation is not possible.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler SDK についてさらに検索

質問済み:

2017 年 10 月 28 日

回答済み:

2018 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by