In the MATLAB Compiler window, click on Additional Runtime Settings and uncheck the box that says "Do not require Windows Command Shell (console) for execution".
How can I run a compiled MATLAB program if it requests input to the command window?
4 ビュー (過去 30 日間)
古いコメントを表示
Nicholas Sullivan
2015 年 6 月 16 日
回答済み: Nicholas Sullivan
2015 年 6 月 16 日
I am trying out the MATLAB Compiler to run a script that I have written. After compiling and running the code, it works fine until the following error message appears: "Undefined function 'regexprep' for input arguments of type 'double'." I do not know what 'regexprep' is and I don't use it in my code. But on the line that the error message refers to, I use the 'input' function, and I can understand why that would cause a problem, because there is no command window when I am running the compiled version. So, my questions are: What is 'regexprep'? How can I get a compiled MATLAB program to run if it depends on user input to the command window? Is there anything other than the 'input' function that could be causing the issue?
0 件のコメント
採用された回答
その他の回答 (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!