How can i run a matlab code on other PC ? The installed Matlab Runtime is not compatible with the application

I have a matlab code which needs to be executed on other PC. The PC and my exe file are having the same Run time version 2017b 9.3 . The problem is that when the code contains some specific functions, the exe file can not be implemented in the PC which gives the error message ( The installed Matlab Runtime is not compatible with the application). The PC can run some matlab exe files which contain commands like reshape, imread, imagesc,rgb2lab,....etc. But on the other hand, it can not read other functions like bwboundaries, imfill, strel, imclose,.... So, is there any solution where i can make the PC reads/computes all of the functions inside a matlab code ?
I will really appreciate your help, if someone has an answer for.

6 Comments

I guess, that you have tried to compile the code. Did you include the required toolboxes?
@jan . Actually yes, i just used the deploytool and selected application compiler to compute a standalone application. But actually i don't know, whether there is a possibility to include all the libraries/toolboxes needed to compute the code or not ? Is there any idea to include them ?
I have also solved the problem with another solution , as i selected Runtime included in package instead of selecting Runtime downloaded from Web where the MyAppInstaller_mcr file would be generated. That file i can copy to the machinery PC and install it there. Afterwards the exe file can be implemented correctly on the PC and all the toolboxes i used in the Matlab code, the PC can read/implement without any limitations.
Thank you very much, I exported two EXes using Gui, one of which was opened directly on my own computer using 'for_redistribution_files_only', the other one showed an error, the version of runtime is incompatible, the Runtime is not compatible. It is probably also the reason why some functions exist when I program this exe, after installing 'MyAppInstaller_mcr'

Sign in to comment.

Answers (1)

Try typing deploytool in your command window. This will open an application package utility.
you can create an exe and package your script with all dependencies and libraries needed for running it on another PC,

Categories

Asked:

on 26 Feb 2019

Commented:

Li
on 2 Apr 2024

Community Treasure Hunt

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

Start Hunting!