Matlab coder can convert matlab GUI application into c or c++ file ?

Hi,
Currently i building a application using GUI, can i convert both fig and m file to c or c++ file? the application is to take input from user to generate the step response graph.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 1월 18일

0 개 추천

No, MATLAB Coder does not support loading .fig files.
The File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/14340-convert-fig-to-matlab-code could probably help with this, but do take note of the corrections noted in the comments there.

댓글 수: 3

as my matlab application is an transfer function simulator, where it take user input and generate step response graph. Is that mean that i had to generate an interface in c to support my matlab the c file converted from matlab?
MATLAB Coder itself effectively does not support displaying any graphics, and does not support uicontrol or similar interface functions.
If you are targetting external hardware, then in some cases you can embed your code into a Simulink model, and use hardware-specific graphics blocks for interface purposes.
MATLAB Compiler, on the other hand, does support compiling .fig files and user interfaces -- but does not produce C or C++ code.
Totally get it now, thanks for clearing my doubt.

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

추가 답변 (0개)

카테고리

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

태그

질문:

2018년 1월 18일

댓글:

2018년 1월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by