MATLAB: Undefined function or method ‘sim’ for input arguments of type struct

Deep Learning ToolboxMATLAB Compilerneural networkStatistics and Machine Learning Toolbox

I have created a standalone using deploytool function. It contains four classifiers namely a neural network(ann), SVM architecture,knn and ensemble(again a neural network).
The work flow is as following..
1)get the input from the user
2)load matlab.mat %–this contains my networks, svm architecture and the two matrices(training vector and training target for knnclassify). This file is explicitly called by the main function.
3)classify the input
4)output is generated %– this approach worked perfectly fine wen run through the editor.. but after compilation wen run thro command command prompt i get the following error msgs..
Class':all:' is an unknown object class. Object ann of this class has been converted to a structure.
Warning: Could not find appropriate function on path loading function handle C:\Program Files(x86)\MATLAB\R2007b\toolbox\bioinfo\biolearning\private\linear_kernel.m>linear_kernel
Class':all:' is an unknown object class. Object ann of this class has been converted to a structure.
Undefined function or method 'knnclassify' for input arguments of type'double'
In the deploytool function i added two files under other files option 1)matlab.mat 2)gui.fig
Any help would be appreciated.. Thanks in advance

Best Answer

Solution 1-16DQNH might be of help.