I am building a standalone app from Matlab scripts for PC's without an installed version of Matlab. Therefore, I included the MCR in the deploy tool. However, I don't like the size my standalone app including the MCR package. Is there any way to exclude functions etc. from the MCR which I don't need for my standalone app?

 채택된 답변

Sean de Wolski
Sean de Wolski 2016년 7월 25일

2 개 추천

Starting in R2016a, if you are only doing numerics (not graphics) the MCR will be much smaller

댓글 수: 1

Rickster_NL
Rickster_NL 2016년 7월 27일
That is pretty nice. But I need to have some plotting capabilities in my application.

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

추가 답변 (1개)

Image Analyst
Image Analyst 2016년 7월 25일

0 개 추천

Yes. Just don't include the MCRInstaller bundled into your app. Just have your app alone. Let the user get the MCR from the web site themselves, or you can ship it as a separate installer (like I do). No sense hauling around 800 MB of excess baggage when your app would otherwise only be a 10 MB app. If you use deploytool, I think there's an option for telling it how to include or exclude the MCRInstaller.

댓글 수: 1

Rickster_NL
Rickster_NL 2016년 7월 25일
편집: Rickster_NL 2016년 7월 26일
Thanks for the reply. Shipping it as an extra installer is not a bad idea. However, I am wondering if it is possible to strip the MCR installer such that it includes only the functions from Matlab which I have used in my codes.
I know I could adjust my code and convert it all to C-code using the Matlab coder. But I really like the simplicity of the deploytool and I have a feeling I would have to adjust my code heavily for the Matlab coder.

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2016년 7월 25일

댓글:

2016년 7월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by