필터 지우기
필터 지우기

Can I programmatically set mcrinstaller path?

조회 수: 3 (최근 30일)
Andreas Prokopiou
Andreas Prokopiou 2018년 10월 31일
답변: Andreas Prokopiou 2018년 10월 31일
So far I can only define the path through the Preferences pane in the Matlab IDE (go to MATLAB Compiler option from the list to the left of the pane and select the path to the MCR_installer.exe).
After I do that when I type mcrinstaller in the command window I see the path I just set through the Preferences. My question now is; is there a way to do this process programmatically? Something to the extend of:
set(mcrinstaller,'C:\MCR_installer.exe')
Thank you in advance for your help,
A.

채택된 답변

Andreas Prokopiou
Andreas Prokopiou 2018년 10월 31일
I found the solution to my own problem by reversing how the mcrinstaller function works.
installer_path = 'C:\...\MCR_R2018b_win64_installer.exe';
s = settings;
compilerGroup = s.matlabCompiler;
compilerGroup.RuntimeInstaller.PersonalValue = installed_path;
hope it helps someone

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by