Error running the standalone application
5 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have developed a standalone exe of my code.
My code runs without any errors on matlab interface but when the standalone exe is run a window pops with a note saying
"The 'STRING ' input must be either a char row vector, a cell array pf char row vwctors, or a string array'
My input is a combination of character and strings.
How can i resolve this?
Thank you in advance
4 件のコメント
Walter Roberson
2018 年 12 月 4 日
Some toolboxes are not supported at all. Most of the toolboxes that can be compiled do not support Mathworks convenience tools; see list here
Historically the entry point had to be a function, not a script; I am not sure whether that was changed or not (I thought it had been but then I saw hints otherwise later.)
You can use inputdlg() and menu() and questdlg() and uicontrol('style', 'edit' ) and radio buttons and so on in compiled executables. But input() gets tricky.
You can supply command line arguments, and those are received as parameters to the function that is the entry point. But beware that they will be received as character vectors.
回答 (0 件)
参考
カテゴリ
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!