is not in the application's expanded CTF archive at

Hello,
I have compiled my SVM trained model using " mcc -m mypredict9_7.m -a 'mymodel2.mat' "
When deploying my SVM trained model I get the following error:
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\DatasetSpecification.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred3'.
Please advise on solving this issue.
Hussein

2 Comments

Can this happend if there is several MCR apps installed on the same PC?
In detail I get the following error
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\DatasetSpecification.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\DatasetSpecification.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\+transformation\TrainedManualFeatureSelection.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\+adapterlayer\TrainedClassificationSVM.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\+transformation\TrainedManualFeatureSelection.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\DatasetSpecification.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\+adapterlayer\TrainedClassificationSVM.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
The file
'C:\Program Files\Polyspace\R2020b\toolbox\stats\mlearnapp\+mlearnapp\+internal\+model\+transformation\TrainedManualFeatureSelection.m'
is not in the application's expanded CTF archive at
'C:\Users\user\AppData\Local\Temp\user\mcrCache9.9\mypred7'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
ypred =
0

Sign in to comment.

Answers (1)

As per the first Tip on this documentation page, if there is no call to the constructor of the class in your application the static analysis that determines what needs to be in the MCR can't tell it needs to include it. You need to explicitly tell MATLAB Compiler to include that class in the MCR using %#function or the -a option.

3 Comments

Hello,
I have used %#function ClassificationSVM pragma in my "mypredict9_7.m" file but it does not seem to work.
I have also used the -a option in my " mcc -m mypredict9_7.m -a 'mymodel2.mat " command. It also does not seem to work.
Which constructor did you consider in your answer please?
Is there any possibility I need to uninstall and reinstall Matlab?

Sign in to comment.

Categories

Products

Tags

Asked:

on 30 Dec 2022

Edited:

on 11 Sep 2024

Community Treasure Hunt

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

Start Hunting!