How can I compile a function that uses a modified INPUTDLG function?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all,
I am using a modified INPUTDLG function, newid.m. The function needs to be saved in the same directory as the INPUTDLG function in order to work - "Since it is dependent on several private functions, newid.m will only work if stored in this location." I'm now trying to compile a function that utilizes newid.m using deploytool, but my executable throws an error whenever it calls newid. Is there a way to include a function that needs to be in the toolbox path?
Thanks,
Ben
0 件のコメント
回答 (2 件)
Chirag Gupta
2011 年 8 月 15 日
Just a thought: What if you included inputdlg? (also make sure that newid is being included)
Something like: mcc -m yourmainFucn.m -a inputdlg.m -a newid.m
Another thought: In your main function, you could include inputdlg like:
if (false)
inputdlg('Workaround');
end
Another solution might be to use function pragma in your code
%# function inputdlg
0 件のコメント
Ben
2011 年 8 月 15 日
1 件のコメント
Mobasshir Hossain Akash
2018 年 6 月 12 日
Can you upload those two function here? I modified my code and found the same error.
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!