Standalone application giving error (function dataset) when Matlab is working fine

1 回表示 (過去 30 日間)
Edoardo Simioni
Edoardo Simioni 2016 年 10 月 14 日
コメント済み: Marc Jakobi 2016 年 10 月 14 日
Hi all I am building a specific application composed of several functions and scripts and a GUI. When running the whole thing from Matlab it works perfectly. After compiling, though, I get an error saying "undefined function dataset for input arguments of type 'cell'". The funny thing is that dataset is meant to work with cell. I tried to add the dataset function to the path of the compiler and also adding the relevant files to the package, but got always the same result. Any advice?

回答 (1 件)

Marc Jakobi
Marc Jakobi 2016 年 10 月 14 日
Here's a few things you can do to debug:
  1. see if there is only one function called dataset in your search path and make sure you are adding the correct one.
  2. Are you loading data from a MAT file? If there's a variable called dataset that gets loaded or created, Matlab won't recognise it as a function anymore.
  2 件のコメント
Edoardo Simioni
Edoardo Simioni 2016 年 10 月 14 日
Thank you for your answer Marc. But would not the options you mentioned already give an error in Matlab and not only in the deployed application?
Marc Jakobi
Marc Jakobi 2016 年 10 月 14 日
It depends on which Matlab version you are using. In older versions, you have to add the functions manually.
Another issue could be if you are using eval(). That will get compiled without Matlab adding the function that is called by eval(). If you are, I would look for another way to call it without eval.

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

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by