Figure properties or standalone applications properties

조회 수: 1 (최근 30일)
Franck AUBINEAU
Franck AUBINEAU 2024년 9월 26일
댓글: Franck AUBINEAU 2024년 9월 30일
I have a simple script which is drawing figure
I make an application with matlab compiler and I want to launch it several times from an interface
My problem is : when I launch the application and show the figure, I have to close DOS consol to get control on my interface. If I close DOS consol, figures desappear and I would like they don't.
Is there properties in figures or application or compiler to have this running ?
  댓글 수: 2
Rushikesh
Rushikesh 2024년 9월 27일
Try compiling application by suppresing console window.
mcc -m myScript.m -e
Franck AUBINEAU
Franck AUBINEAU 2024년 9월 27일
I tried but when I use -e option in matal compiler toolbox parameters, it doesn't work. There alos is an option like this in "additinnal rutime settings" but I didn't see the difference when I launch the applicaiton

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

답변 (1개)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU 2024년 9월 30일
Hey Franck,
Since, -e option not worked, did you try following ways?
  1. Set Figure Properties: Use Visible to 'off' initially, then 'on' when needed.
  2. Consider creating a MATLAB-based launcher script to control figure visibility.
function launch_matlab_app(script_path)
% Launch MATLAB application in a separate process
system(['matlab -nosplash -nodesktop -r "run(''' script_path ''')"'']);
end
  댓글 수: 1
Franck AUBINEAU
Franck AUBINEAU 2024년 9월 30일
Hi and thanks for this proposition
Unfortanately , I can't change the source code in my graphic interface that's launchning the Matlab application (an this code is in C++)
I think the solution is to not use system command to launch it (interface in Qt -> QProcess) Maybe in the next version of the interface :-)

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by