Error running the standalone application

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
Walter Roberson 2018년 11월 29일
Have you traced it down to a particular line of your code? Sounds like it might have to do with setting the String property of a uicontrol ?
deep
deep 2018년 12월 4일
Thank you walter!
Can you please tell me what is the pre requisite in a .m file for an exe generation and also i have some inputs that needs to be supplied during the execution of exe. How will that be taken care of in an exe generated.
Thank you in advance
Walter Roberson
Walter Roberson 2018년 12월 4일
There are a number of unsupported functions: listed here .
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.
deep
deep 2018년 12월 5일
Thank you walter once again,
As you mentioned the earlier problem got sorted and the error was due to uicontrols.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

질문:

2018년 11월 29일

댓글:

2018년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by